]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
backlight: lm3630a: Fix return code of .update_status() callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 Jun 2021 12:21:47 +0000 (14:21 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 20 Sep 2021 13:40:00 +0000 (15:40 +0200)
commit504089be6554b4c36fbe4b56783c41403b2b4c47
tree6707d68bf644569585dfceacc5fd58e6b376ee1b
parent0a5df6be6c0a5b4d7a5c3a9f89c7ab85c6995cb1
backlight: lm3630a: Fix return code of .update_status() callback

BugLink: https://bugs.launchpad.net/bugs/1939738
[ Upstream commit b9481a667a90ec739995e85f91f3672ca44d6ffa ]

According to <linux/backlight.h> .update_status() is supposed to
return 0 on success and a negative error code otherwise. Adapt
lm3630a_bank_a_update_status() and lm3630a_bank_b_update_status() to
actually do it.

While touching that also add the error code to the failure message.

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.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/video/backlight/lm3630a_bl.c