linux/drivers/iio
Uwe Kleine-König aec6dbe61f iio: adc: vf610_adc: 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-29-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-09-23 15:06:54 +01:00
..
accel iio: accel: hid-sensor-accel-3d: Convert to platform remove callback returning void 2023-09-23 15:06:52 +01:00
adc iio: adc: vf610_adc: Convert to platform remove callback returning void 2023-09-23 15:06:54 +01:00
addac iio: addac: stx104: Add 8254 Counter/Timer support 2023-09-17 10:29:41 +01:00
afe
amplifiers iio: amplifiers: hmc425a: Add Support HMC540S 4-bit Attenuator 2023-09-12 10:39:49 +01:00
buffer
cdc
chemical iio: chemical: sgp30: Convert enum->pointer for data in the match tables 2023-09-12 10:42:03 +01:00
common
dac iio: dac: mcp4725: Add dac_reg_offset to struct mcp4725_chip_info 2023-09-12 10:42:04 +01:00
dummy
filter
frequency iio: frequency: adf4350: Use device managed functions and fix power down issue. 2023-09-11 20:12:40 +01:00
gyro
health
humidity
imu iio: imu: adis16475.c: Add delta angle and delta velocity channels 2023-09-12 10:42:03 +01:00
light iio: light: opt4001: Use i2c_get_match_data() 2023-09-12 10:42:03 +01:00
magnetometer iio: magnetometer: ak8975: Sort ID and ACPI tables 2023-09-11 20:12:42 +01:00
multiplexer
orientation
position
potentiometer iio: potentiometer: ad5110: Use i2c_get_match_data() 2023-09-12 10:42:03 +01:00
potentiostat
pressure iio: pressure: ms5637: Use i2c_get_match_data() 2023-09-12 10:42:04 +01:00
proximity iio: proximity: sx9310: Convert enum->pointer for match data table 2023-09-11 20:12:41 +01:00
resolver
temperature iio: temperature: tmp117: Convert enum->pointer for data in the match tables 2023-09-12 10:42:03 +01:00
test
trigger
iio_core.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c iio: Add IIO_DELTA_VELOCITY channel type 2023-09-12 10:42:03 +01:00
industrialio-event.c
industrialio-gts-helper.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile
TODO