a80a0bbee4
Most of the GPIO expanders supported by the max732x driver have interrupt generation capability by reporting changes on input pins through an INT# pin. This patch implements the irq_chip functionnality (edge detection only). Signed-off-by: Marc Zyngier <maz@misterjones.org> Cc: Eric Miao <eric.y.miao@gmail.com> Cc: Jebediah Huang <jebediah.huang@gmail.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
22 lines
534 B
C
22 lines
534 B
C
#ifndef __LINUX_I2C_MAX732X_H
|
|
#define __LINUX_I2C_MAX732X_H
|
|
|
|
/* platform data for the MAX732x 8/16-bit I/O expander driver */
|
|
|
|
struct max732x_platform_data {
|
|
/* number of the first GPIO */
|
|
unsigned gpio_base;
|
|
|
|
/* interrupt base */
|
|
int irq_base;
|
|
|
|
void *context; /* param to setup/teardown */
|
|
|
|
int (*setup)(struct i2c_client *client,
|
|
unsigned gpio, unsigned ngpio,
|
|
void *context);
|
|
int (*teardown)(struct i2c_client *client,
|
|
unsigned gpio, unsigned ngpio,
|
|
void *context);
|
|
};
|
|
#endif /* __LINUX_I2C_MAX732X_H */
|