linux/drivers/platform/surface
Uwe Kleine-König d5e2c23366 platform/surface: hotplug: 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() is 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>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20230917203805.1149595-8-u.kleine-koenig@pengutronix.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
History 2023-09-21 18:31:19 +02:00
..
aggregator RISC-V Patches for the 6.5 Merge Window, Part 1 2023-06-30 09:37:26 -07:00
Kconfig platform/surface: aggregator: Move subsystem hub drivers to their own module 2022-07-02 11:23:25 +02:00
Makefile platform/surface: aggregator: Move subsystem hub drivers to their own module 2022-07-02 11:23:25 +02:00
surface3-wmi.c platform/surface: surface3-wmi: Convert to platform remove callback returning void 2023-09-21 18:31:18 +02:00
surface3_power.c platform/surface: surface3_power: Switch back to use struct i2c_driver's .probe() 2023-06-13 12:32:16 +02:00
surface_acpi_notify.c platform/surface: acpi-notify: Convert to platform remove callback returning void 2023-09-21 18:31:19 +02:00
surface_aggregator_cdev.c platform/surface: aggregator-cdev: Convert to platform remove callback returning void 2023-09-21 18:31:19 +02:00
surface_aggregator_hub.c platform/surface: aggregator_registry: Fix target-ID of base-hub 2023-02-02 22:48:20 +01:00
surface_aggregator_registry.c platform/surface: aggregator-registry: Convert to platform remove callback returning void 2023-09-21 18:31:19 +02:00
surface_aggregator_tabletsw.c platform/surface: aggregator_tabletsw: Add support for book mode in POS subsystem 2023-05-30 11:20:30 +02:00
surface_dtx.c platform/surface: dtx: Convert to platform remove callback returning void 2023-09-21 18:31:19 +02:00
surface_gpe.c platform/surface: gpe: Convert to platform remove callback returning void 2023-09-21 18:31:19 +02:00
surface_hotplug.c platform/surface: hotplug: Convert to platform remove callback returning void 2023-09-21 18:31:19 +02:00
surface_platform_profile.c platform/surface: aggregator: Enforce use of target-ID enum in device ID macros 2023-02-02 22:48:20 +01:00
surfacepro3_button.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00