mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
gpio: max732x driver
This adds a driver supporting a family of I2C port expanders from Maxim, which includes the MAX7319 and MAX7320-7327 chips. [dbrownell@users.sourceforge.net: minor fixes] Signed-off-by: Jack Ren <jack.ren@marvell.com> Signed-off-by: Eric Miao <eric.miao@marvell.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7444a72eff
commit
bbcd6d543d
4 changed files with 424 additions and 0 deletions
19
include/linux/i2c/max732x.h
Normal file
19
include/linux/i2c/max732x.h
Normal file
|
@ -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 */
|
Loading…
Add table
Add a link
Reference in a new issue