leds: lm3692x: Return 0 from remove callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 6 Feb 2022 22:08:12 +0000 (23:08 +0100)
committerPavel Machek <pavel@ucw.cz>
Sat, 12 Feb 2022 12:02:50 +0000 (13:02 +0100)
commitcf642faef74f453df14c2b8cef533dfd819f425e
treeba0825c728f1f495eba4afc5aafd18ed506d82b5
parent77d62fccebd4dd2e4dbec2bbe581ef98e128561b
leds: lm3692x: Return 0 from remove callback

The only difference between returning zero or a non-zero value is that
for the non-zero case the i2c will print a generic error message
("remove failed (-ESOMETHING), will be ignored").

In this case however the driver itself already emitted a more helpful
error message, so the additional error message isn't helpful at all.

The long-term goal is to make the i2c remove callback return void, making
all implementations return 0 is preparatory work for this change.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3692x.c