History

gpio: max732x: Drop unused support for irq and setup code via platform data

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.

Uwe Kleine-König committed 4 years ago

Commit 6d5f2201 parent 30a35c02 files · +2 −47Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/max732x.h+0−12
@@ -7,17 +7,5 @@ · 6 unmodified lines
7struct max732x_platform_data {7struct max732x_platform_data {
8 /* number of the first GPIO */8 /* number of the first GPIO */
9 unsigned gpio_base;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#endif /* __LINUX_I2C_MAX732X_H */11#endif /* __LINUX_I2C_MAX732X_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t