linux/drivers/leds/flash
Uwe Kleine-König 22a2343689 leds: lm3601x: Improve error reporting for problems during .remove()
Returning an error value in an i2c remove callback results in a generic
error message being emitted by the i2c core, but otherwise it doesn't
make a difference. The device goes away anyhow and the devm cleanups are
called.

So instead of triggering the generic i2c error message, emit a more
helpful message if a problem occurs and return 0 to suppress the generic
message.

This patch is a preparation for making i2c remove callbacks return void.

Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-08-16 12:34:04 +02:00
..
Kconfig leds: Add mt6360 driver 2022-01-12 19:42:42 +01:00
leds-aat1290.c leds: aat1290: Move driver to flash subdirectory 2021-07-12 10:30:04 +02:00
leds-as3645a.c leds: as3645a: Move driver to flash subdirectory 2021-07-12 10:30:05 +02:00
leds-ktd2692.c leds: ktd2692: Make aux-gpios optional 2022-05-07 23:12:19 +02:00
leds-lm3601x.c leds: lm3601x: Improve error reporting for problems during .remove() 2022-08-16 12:34:04 +02:00
leds-max77693.c leds: max77693: Move driver to flash subdirectory 2021-07-12 10:30:05 +02:00
leds-mt6360.c leds: Add mt6360 driver 2022-01-12 19:42:42 +01:00
leds-rt4505.c leds: rt4505: Add support for Richtek RT4505 flash LED controller 2021-03-26 09:34:04 +01:00
leds-rt8515.c leds: rt8515: Put fwnode in any case during ->probe() 2021-08-03 23:49:37 +02:00
leds-sgm3140.c leds: sgm3140: Add ocs,ocp8110 compatible 2022-02-12 12:27:53 +01:00
Makefile leds: Add mt6360 driver 2022-01-12 19:42:42 +01:00