diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-06-15 06:40:41 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-24 01:41:17 +0400 |
commit | 6e20a0a429bd4dc07d6de16d9c247270e04e4aa0 (patch) | |
tree | 15bbafa3dbcfedbe29a71f287e075932108c447e /include/linux/i2c | |
parent | 7cb6580c0b2690e5c6ac1acd9375fa55d72af289 (diff) | |
download | linux-6e20a0a429bd4dc07d6de16d9c247270e04e4aa0.tar.xz |
gpio: pcf857x: enable gpio_to_irq() support
pcf857x chip has some pins, but interrupt pin is only 1 pin.
And gpiolib requests 1 interrupt per 1 gpio pin.
Thus, this patch added demuxed irq to pcf857x driver,
and enabled gpio_to_irq().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/pcf857x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/i2c/pcf857x.h b/include/linux/i2c/pcf857x.h index 0767a2a6b2f1..781e6bd06c34 100644 --- a/include/linux/i2c/pcf857x.h +++ b/include/linux/i2c/pcf857x.h @@ -10,6 +10,7 @@ * @setup: optional callback issued once the GPIOs are valid * @teardown: optional callback issued before the GPIOs are invalidated * @context: optional parameter passed to setup() and teardown() + * @irq: optional interrupt number * * In addition to the I2C_BOARD_INFO() state appropriate to each chip, * the i2c_board_info used with the pcf875x driver must provide its @@ -39,6 +40,8 @@ struct pcf857x_platform_data { int gpio, unsigned ngpio, void *context); void *context; + + int irq; }; #endif /* __LINUX_PCF857X_H */ |