linux/drivers/iio/temperature
Uwe Kleine-König f558917306 iio: temperature: hid-sensor: 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-48-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-09-23 15:06:56 +01:00
..
hid-sensor-temperature.c iio: temperature: hid-sensor: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
iqs620at-temp.c iio: temperature: iqs620at-temp: Add support for V3 silicon 2022-02-14 13:07:33 +00:00
Kconfig iio: temperature: Add driver support for Maxim MAX30208 2022-11-23 20:20:32 +00:00
ltc2983.c iio: temperature: ltc2983: support more parts 2022-11-23 19:54:00 +00:00
Makefile iio: temperature: Add driver support for Maxim MAX30208 2022-11-23 20:20:32 +00:00
max30208.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
max31856.c iio: temperature: max31856: Make use of device properties 2022-04-28 19:22:55 +01:00
max31865.c iio: temp: max31865: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
maxim_thermocouple.c iio: temp: maxim_thermocouple: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
mlx90614.c iio: mlx90614: Use i2c_get_match_data() 2023-09-11 20:12:42 +01:00
mlx90632.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
tmp006.c iio: temperature: tmp006: Add OF device matching support 2023-05-28 20:22:03 +01:00
tmp007.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
tmp117.c iio: temperature: tmp117: Convert enum->pointer for data in the match tables 2023-09-12 10:42:03 +01:00
tsys01.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
tsys02d.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00