gpio: max732x: Drop unused support for irq and setup code via platform data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 2 May 2022 17:08:27 +0000 (19:08 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 5 May 2022 12:37:17 +0000 (14:37 +0200)
commit6d5f2207447b28dc73c25b3907e7ee32ee66bdbd
treeeb271b6b145d8d567074e07192b7281271a458c1
parent30a35c07d9e9affaebd557c454df98e5ba269776
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>
drivers/gpio/gpio-max732x.c
include/linux/platform_data/max732x.h