]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 9 Oct 2024 06:00:57 +0000 (08:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Oct 2024 18:31:50 +0000 (19:31 +0100)
commit6a9262edff8ea44e9968b6b271c36d81c6a1f841
tree869a4f418dfb5c3527ee2860d8824ee7d04e8fc2
parent92accba97685064fe8c3c2406e18fc4d5294f397
iio: Switch back to struct platform_driver::remove()

After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/iio/ to use .remove(), with
the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.

While touching these files, make indention of the struct initializer
consistent in several files.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20241009060056.502059-2-u.kleine-koenig@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
47 files changed:
drivers/iio/accel/hid-sensor-accel-3d.c
drivers/iio/adc/ab8500-gpadc.c
drivers/iio/adc/at91-sama5d2_adc.c
drivers/iio/adc/at91_adc.c
drivers/iio/adc/axp20x_adc.c
drivers/iio/adc/bcm_iproc_adc.c
drivers/iio/adc/dln2-adc.c
drivers/iio/adc/ep93xx_adc.c
drivers/iio/adc/exynos_adc.c
drivers/iio/adc/imx8qxp-adc.c
drivers/iio/adc/imx93_adc.c
drivers/iio/adc/meson_saradc.c
drivers/iio/adc/mp2629_adc.c
drivers/iio/adc/mxs-lradc-adc.c
drivers/iio/adc/npcm_adc.c
drivers/iio/adc/qcom-pm8xxx-xoadc.c
drivers/iio/adc/rcar-gyroadc.c
drivers/iio/adc/stm32-adc-core.c
drivers/iio/adc/stm32-adc.c
drivers/iio/adc/stm32-dfsdm-adc.c
drivers/iio/adc/stm32-dfsdm-core.c
drivers/iio/adc/sun4i-gpadc-iio.c
drivers/iio/adc/ti_am335x_adc.c
drivers/iio/adc/twl4030-madc.c
drivers/iio/adc/twl6030-gpadc.c
drivers/iio/adc/vf610_adc.c
drivers/iio/dac/dpot-dac.c
drivers/iio/dac/lpc18xx_dac.c
drivers/iio/dac/stm32-dac-core.c
drivers/iio/dac/stm32-dac.c
drivers/iio/dac/vf610_dac.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/humidity/hid-sensor-humidity.c
drivers/iio/light/cm3605.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/light/hid-sensor-prox.c
drivers/iio/light/lm3533-als.c
drivers/iio/magnetometer/hid-sensor-magn-3d.c
drivers/iio/orientation/hid-sensor-incl-3d.c
drivers/iio/orientation/hid-sensor-rotation.c
drivers/iio/position/hid-sensor-custom-intel-hinge.c
drivers/iio/pressure/hid-sensor-press.c
drivers/iio/proximity/cros_ec_mkbp_proximity.c
drivers/iio/proximity/srf04.c
drivers/iio/temperature/hid-sensor-temperature.c
drivers/iio/trigger/iio-trig-interrupt.c
drivers/iio/trigger/stm32-timer-trigger.c