linux/drivers/iio/gyro
Uwe Kleine-König 3a8799735b iio: gyro: hid-sensor-gyro-3d: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230919174931.1417681-35-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-09-23 15:06:55 +01:00
..
adis16080.c iio: gyro: adis16080: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
adis16130.c iio: gyro: adis16130: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
adis16136.c iio: gyro: adis16136: Call '__adis_initial_startup()' in probe 2022-11-23 20:37:50 +00:00
adis16260.c iio: gyro: adis16260: Call '__adis_initial_startup()' in probe 2022-11-23 20:37:51 +00:00
adxrs290.c
adxrs450.c iio: gyro: adxrs450: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
bmg160_core.c iio: gyro: bmg160_core: Simplify using devm_regulator_*get_enable() 2022-11-23 19:44:00 +00:00
bmg160_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
bmg160_spi.c
bmg160.h
fxas21002c_core.c iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
fxas21002c_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
fxas21002c_spi.c iio: gyro: fxas210002c: Move exports to IIO_FXAS210002C namespace. 2022-11-23 19:44:00 +00:00
fxas21002c.h
hid-sensor-gyro-3d.c iio: gyro: hid-sensor-gyro-3d: Convert to platform remove callback returning void 2023-09-23 15:06:55 +01:00
itg3200_buffer.c
itg3200_core.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
Kconfig
Makefile
mpu3050-core.c iio: Rename iio_trigger_poll_chained and add kernel-doc 2023-03-11 12:18:29 +00:00
mpu3050-i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
mpu3050.h iio: gyro: mpu3050: Make mpu3050_common_remove() return void 2022-05-01 19:01:13 +01:00
ssp_gyro_sensor.c iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
st_gyro_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_gyro_core.c iio: st_sensors: Stop abusing mlock to ensure internal coherency 2022-04-10 16:21:45 +01:00
st_gyro_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
st_gyro_spi.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
st_gyro.h