diff options
author | Artur Weber <aweber.kernel@gmail.com> | 2023-07-14 14:14:40 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-07-28 10:22:38 +0100 |
commit | 5145531be5fbad0e914d1dc1cbd392d7b756abaa (patch) | |
tree | e30934ed1f8e48514b0ec41de9eb9d365cf28f60 /drivers/video/backlight/gpio_backlight.c | |
parent | 4c09e20b3c85f60353ace21092e34f35f5e3ab00 (diff) |
backlight: lp855x: Catch errors when changing brightness
The lp855x_bl_update_status function's return type is int, but
it always returns 0, without checking for the results of the
write_byte/pwm_ctrl functions called within.
Make this function return the return values of the functions it
calls, and modify the lp855x_pwm_ctrl function to return errors.
Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20230714121440.7717-3-aweber.kernel@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/video/backlight/gpio_backlight.c')
0 files changed, 0 insertions, 0 deletions