Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Eric Miao | bbcd6d5 | 2008-07-25 01:46:14 -0700 | [diff] [blame] | 2 | #ifndef __LINUX_I2C_MAX732X_H |
| 3 | #define __LINUX_I2C_MAX732X_H |
| 4 | |
| 5 | /* platform data for the MAX732x 8/16-bit I/O expander driver */ |
| 6 | |
| 7 | struct max732x_platform_data { |
| 8 | /* number of the first GPIO */ |
| 9 | unsigned gpio_base; |
| 10 | |
Marc Zyngier | a80a0bb | 2010-05-26 14:42:16 -0700 | [diff] [blame] | 11 | /* interrupt base */ |
| 12 | int irq_base; |
| 13 | |
Eric Miao | bbcd6d5 | 2008-07-25 01:46:14 -0700 | [diff] [blame] | 14 | void *context; /* param to setup/teardown */ |
| 15 | |
| 16 | int (*setup)(struct i2c_client *client, |
| 17 | unsigned gpio, unsigned ngpio, |
| 18 | void *context); |
| 19 | int (*teardown)(struct i2c_client *client, |
| 20 | unsigned gpio, unsigned ngpio, |
| 21 | void *context); |
| 22 | }; |
| 23 | #endif /* __LINUX_I2C_MAX732X_H */ |