summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-05-02 19:08:27 +0200
committerBartosz Golaszewski <brgl@bgdev.pl>2022-05-05 14:37:17 +0200
commit6d5f2207447b28dc73c25b3907e7ee32ee66bdbd (patch)
treeeb271b6b145d8d567074e07192b7281271a458c1 /include
parent30a35c07d9e9affaebd557c454df98e5ba269776 (diff)
downloadlinux-stable-6d5f2207447b28dc73c25b3907e7ee32ee66bdbd.tar.gz
linux-stable-6d5f2207447b28dc73c25b3907e7ee32ee66bdbd.tar.bz2
linux-stable-6d5f2207447b28dc73c25b3907e7ee32ee66bdbd.zip
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. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/max732x.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/platform_data/max732x.h b/include/linux/platform_data/max732x.h
index f231c635faec..423999207cd5 100644
--- a/include/linux/platform_data/max732x.h
+++ b/include/linux/platform_data/max732x.h
@@ -7,17 +7,5 @@
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 */