kernel-aes67/drivers/w1/masters
Uwe Kleine-König d97d263132 w1: w1-gpio: 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/bd69ccde7395cf4bf63765e29c1ce83834d3669b.1708340114.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2024-02-20 11:24:34 +01:00
..
Kconfig w1: add UART w1 bus driver 2024-02-15 15:02:33 +01:00
Makefile w1: add UART w1 bus driver 2024-02-15 15:02:33 +01:00
amd_axi_w1.c w1: amd_axi_w1: Explicitly include correct DT includes 2023-12-08 08:35:25 +01:00
ds2482.c w1: ds2482: Switch back to use struct i2c_driver's .probe() 2023-09-13 10:48:42 +02:00
ds2490.c w1: ds2490: support block sizes larger than 128 bytes in ds_read_block 2023-12-20 09:25:23 +01:00
matrox_w1.c
mxc_w1.c w1: mxc_w1: Convert to platform remove callback returning void 2024-02-20 11:24:33 +01:00
omap_hdq.c w1: omap_hdq: Convert to platform remove callback returning void 2024-02-20 11:24:33 +01:00
sgi_w1.c w1: sgi_w1: Convert to platform remove callback returning void 2024-02-20 11:24:34 +01:00
w1-gpio.c w1: w1-gpio: Convert to platform remove callback returning void 2024-02-20 11:24:34 +01:00
w1-uart.c w1: add UART w1 bus driver 2024-02-15 15:02:33 +01:00