Re: [PATCH 2/2] backlight: lp855x: Catch errors when changing brightness
From: Daniel Thompson <hidden>
Date: 2023-07-17 08:39:46
Also in:
dri-devel, linux-pwm, lkml
From: Daniel Thompson <hidden>
Date: 2023-07-17 08:39:46
Also in:
dri-devel, linux-pwm, lkml
On Fri, Jul 14, 2023 at 02:14:40PM +0200, Artur Weber wrote:
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 <redacted>