The only user of max732x_platform_data is arch/arm/mach-pxa/littleton.c and it only uses .gpio_base. So drop the other members from the data struct and simplify the driver accordingly. The motivating side effect of this change is that the .remove() callback cannot return a nonzero error code any more which prepares making i2c remove callbacks return void.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -7,17 +7,5 @@ · 6 unmodified lines | ||
| 7 | 7 | struct max732x_platform_data { |
| 8 | 8 | /* number of the first GPIO */ |
| 9 | 9 | unsigned gpio_base; |
| 10 | − | |
| 11 | − /* interrupt base */ | |
| 12 | − int irq_base; | |
| 13 | − | |
| 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 | 10 | }; |
| 23 | 11 | #endif /* __LINUX_I2C_MAX732X_H */ |