linux-stable/drivers/video/backlight
Uwe Kleine-König ea379bc802 backlight: qcom-wled: 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 (mostly) ignored
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.

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: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230308073945.2336302-12-u.kleine-koenig@pengutronix.de
2023-03-16 15:08:36 +00:00
..
88pm860x_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
aat2870_bl.c backlight: aat2870_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
adp5520_bl.c backlight: adp5520_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
adp8860_bl.c backlight: adp8860: Convert to i2c's .probe_new() 2022-12-07 13:33:02 +00:00
adp8870_bl.c backlight: adp8870: Convert to i2c's .probe_new() 2022-12-07 13:33:02 +00:00
ams369fg06.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
apple_bl.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
arcxcnn_bl.c backlight: arcxcnn: Use backlight helper 2023-02-22 10:55:27 +00:00
as3711_bl.c backlight: as3711_bl: Simplify update_status 2020-07-20 10:27:03 +01:00
backlight.c backlight: backlight: Fix doc for backlight_device_get_by_name 2023-02-22 10:53:26 +00:00
bd6107.c backlight: bd6107: Convert to i2c's .probe_new() 2022-12-07 13:33:02 +00:00
corgi_lcd.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
cr_bllcd.c backlight: cr_bllcd: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
da903x_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
da9052_bl.c backlight: da9052_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
ep93xx_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
gpio_backlight.c backlight: gpio_backlight: Simplify update_status() 2020-07-20 10:27:05 +01:00
hp680_bl.c backlight: hp680_bl: Convert to platform remove callback returning void 2023-03-16 15:08:35 +00:00
hx8357.c
ili922x.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ili9320.c video: backlight: ili9320: Make ili9320_remove() return void 2021-10-20 15:13:59 +01:00
ili9320.h video: backlight: ili9320: Make ili9320_remove() return void 2021-10-20 15:13:59 +01:00
ipaq_micro_bl.c backlight: ipaq_micro: Use backlight helper 2023-02-22 10:55:27 +00:00
jornada720_bl.c backlight: journada720: Fix Wmisleading-indentation warning 2021-03-23 09:42:55 +00:00
jornada720_lcd.c
kb3886_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
Kconfig backlight: ktz8866: Add support for Kinetic KTZ8866 backlight 2023-02-22 10:55:28 +00:00
ktd253-backlight.c backlight: ktd253: Switch to use dev_err_probe() helper 2023-02-22 10:54:59 +00:00
ktz8866.c backlight: ktz8866: Convert to i2c's .probe_new() 2023-02-22 10:55:28 +00:00
l4f00242t03.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
lcd.c backlight: lcd: Add missing kerneldoc entry for 'struct device parent' 2020-07-06 08:11:41 +01:00
led_bl.c backlight: led_bl: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
lm3533_bl.c backlight: lm3533_bl: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
lm3630a_bl.c backlight: lm3630a: Convert to i2c's .probe_new() 2022-12-07 13:33:02 +00:00
lm3639_bl.c backlight: lm3639: Convert to i2c's .probe_new() 2022-12-07 13:33:02 +00:00
lms283gf05.c backlight: lms283gf05: Convert to GPIO descriptors 2021-01-20 12:47:11 +00:00
lms501kf03.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
locomolcd.c ARM: pxa: remove unused board files 2023-01-20 11:23:44 +01:00
lp855x_bl.c backlight: lp855x: Convert to i2c's .probe_new() 2022-12-07 13:33:03 +00:00
lp8788_bl.c backlight: lp8788_bl: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
ltv350qv.c video:backlight: remove reference to AVR32 architecture in ltv350qv 2022-08-03 11:11:26 +02:00
ltv350qv.h
lv5207lp.c backlight: lv5207lp: Convert to i2c's .probe_new() 2022-12-07 13:33:03 +00:00
Makefile backlight: ktz8866: Add support for Kinetic KTZ8866 backlight 2023-02-22 10:55:28 +00:00
max8925_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00
mt6370-backlight.c backlight: mt6370-backlight: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
omap1_bl.c fbdev: omap: avoid using mach/*.h files 2022-04-21 15:01:14 +02:00
otm3225a.c
pandora_bl.c
pcf50633-backlight.c
platform_lcd.c Revert "drivers/video/backlight/platform_lcd.c: add support for device tree based probe" 2022-07-13 09:11:21 +01:00
pwm_bl.c backlight: pwm_bl: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
qcom-wled.c backlight: qcom-wled: Convert to platform remove callback returning void 2023-03-16 15:08:36 +00:00
rave-sp-backlight.c
rt4831-backlight.c backlight: rt4831: Apply ocp level from devicetree 2022-06-27 15:07:47 +01:00
sky81452-backlight.c backlight: sky81452: Fix sky81452_bl_platform_data kernel-doc 2023-02-22 10:55:26 +00:00
tdo24m.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
tps65217_bl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
vgg2432a4.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
wm831x_bl.c backlight: Use backlight_get_brightness() throughout 2020-07-20 10:27:06 +01:00