aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEric Miao <[email protected]>2008-07-25 01:46:14 -0700
committerLinus Torvalds <[email protected]>2008-07-25 10:53:30 -0700
commitbbcd6d543de335bf81e96477f46a60a8bf51039c (patch)
tree86d592bfa308407ce357184ff9494e7d36939c6b /include/linux
parent7444a72effa632fcd8edc566f880d96fe213c73b (diff)
gpio: max732x driver
This adds a driver supporting a family of I2C port expanders from Maxim, which includes the MAX7319 and MAX7320-7327 chips. [[email protected]: minor fixes] Signed-off-by: Jack Ren <[email protected]> Signed-off-by: Eric Miao <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c/max732x.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/i2c/max732x.h b/include/linux/i2c/max732x.h
new file mode 100644
index 000000000000..e10336631c62
--- /dev/null
+++ b/include/linux/i2c/max732x.h
@@ -0,0 +1,19 @@
+#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;
+
+ 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 */