diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-10-10 22:36:23 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-10-15 10:58:10 +0200 |
commit | 6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867 (patch) | |
tree | 96ef4bc102540cd3e0e35fe903f18a922ec35253 /drivers/leds/leds-da903x.c | |
parent | leds: bcm63138: Add some register defines (diff) | |
download | linux-6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867.tar.xz linux-6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867.zip |
leds: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.
Convert all platform drivers below drivers/leds/ to use .remove(), with
the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.
While touching these files, make indention of the struct initializer
consistent in several files.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20241010203622.839625-5-u.kleine-koenig@baylibre.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-da903x.c')
-rw-r--r-- | drivers/leds/leds-da903x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c index f067a5f4d3c4..71209b3c8f1e 100644 --- a/drivers/leds/leds-da903x.c +++ b/drivers/leds/leds-da903x.c @@ -133,7 +133,7 @@ static struct platform_driver da903x_led_driver = { .name = "da903x-led", }, .probe = da903x_led_probe, - .remove_new = da903x_led_remove, + .remove = da903x_led_remove, }; module_platform_driver(da903x_led_driver); |