summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Artamonov <freeartman@wechall.net>2013-07-12 16:58:55 +0300
committerArtur Artamonov <freeartman@wechall.net>2013-07-12 16:58:55 +0300
commitffe40f04163df734eb144a838859ebe2ef0a4df4 (patch)
treeef76204da46cf40c34781732aa85db9b157afa70
parentb21bbe56a47af9df9a7d3b2d1fa5bc8bcccae4bd (diff)
gpio_rtl8196c add default to_irq function
-rw-r--r--package/gpio_rtl8196c/src/gpio_rtl8196c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/gpio_rtl8196c/src/gpio_rtl8196c.c b/package/gpio_rtl8196c/src/gpio_rtl8196c.c
index 5b875be12..3babfa484 100644
--- a/package/gpio_rtl8196c/src/gpio_rtl8196c.c
+++ b/package/gpio_rtl8196c/src/gpio_rtl8196c.c
@@ -11,6 +11,7 @@
#include <linux/gpio.h>
#include <linux/stat.h>
#include <linux/moduleparam.h>
+#include <linux/irq.h>
////////////////////////////////////////////////////////////////////////
//DEBUG macroses
@@ -186,6 +187,12 @@ static void gpio_rtl8196c_set( struct gpio_chip *chip, unsigned int gpio, int va
}
////////////////////////////////////////////////////////////////////////
+static int gpio_rtl8196c_to_irq(struct gpio_chip *chip, unsigned offset)
+{
+ return -EINVAL;
+}
+
+////////////////////////////////////////////////////////////////////////
//init module
struct rtl_gpio_chip gpio_rtl8196c =
{
@@ -195,6 +202,7 @@ struct rtl_gpio_chip gpio_rtl8196c =
.get = gpio_rtl8196c_get,
.direction_output = gpio_rtl8196c_dir_out,
.set = gpio_rtl8196c_set,
+ .to_irq = gpio_rtl8196c_to_irq,
.base = 0,
.ngpio = 32,
},