From ffe40f04163df734eb144a838859ebe2ef0a4df4 Mon Sep 17 00:00:00 2001 From: Artur Artamonov Date: Fri, 12 Jul 2013 16:58:55 +0300 Subject: gpio_rtl8196c add default to_irq function --- package/gpio_rtl8196c/src/gpio_rtl8196c.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include #include +#include //////////////////////////////////////////////////////////////////////// //DEBUG macroses @@ -185,6 +186,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, }, -- cgit v1.2.3