mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
gpio: max732x: move header file out of I2C realm
include/linux/i2c is not for client devices. Move the header file to a more appropriate location. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
3b4c94bbac
commit
0a848d638a
3 changed files with 2 additions and 2 deletions
22
include/linux/platform_data/max732x.h
Normal file
22
include/linux/platform_data/max732x.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#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 */
|
Loading…
Add table
Add a link
Reference in a new issue