mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 12:37:04 +07:00
0a848d638a
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>
23 lines
534 B
C
23 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 */
|