diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-06-14 22:40:41 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-23 17:41:17 -0400 |
| commit | 6e20a0a429bd4dc07d6de16d9c247270e04e4aa0 (patch) | |
| tree | 15bbafa3dbcfedbe29a71f287e075932108c447e /include/linux | |
| parent | 7cb6580c0b2690e5c6ac1acd9375fa55d72af289 (diff) | |
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')
| -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 @@ | |||
| 10 | * @setup: optional callback issued once the GPIOs are valid | 10 | * @setup: optional callback issued once the GPIOs are valid |
| 11 | * @teardown: optional callback issued before the GPIOs are invalidated | 11 | * @teardown: optional callback issued before the GPIOs are invalidated |
| 12 | * @context: optional parameter passed to setup() and teardown() | 12 | * @context: optional parameter passed to setup() and teardown() |
| 13 | * @irq: optional interrupt number | ||
| 13 | * | 14 | * |
| 14 | * In addition to the I2C_BOARD_INFO() state appropriate to each chip, | 15 | * In addition to the I2C_BOARD_INFO() state appropriate to each chip, |
| 15 | * the i2c_board_info used with the pcf875x driver must provide its | 16 | * the i2c_board_info used with the pcf875x driver must provide its |
| @@ -39,6 +40,8 @@ struct pcf857x_platform_data { | |||
| 39 | int gpio, unsigned ngpio, | 40 | int gpio, unsigned ngpio, |
| 40 | void *context); | 41 | void *context); |
| 41 | void *context; | 42 | void *context; |
| 43 | |||
| 44 | int irq; | ||
| 42 | }; | 45 | }; |
| 43 | 46 | ||
| 44 | #endif /* __LINUX_PCF857X_H */ | 47 | #endif /* __LINUX_PCF857X_H */ |
