[PATCH 2/2] backlight: lp855x: Catch errors when changing brightness
Daniel Thompson
daniel.thompson at linaro.org
Mon Jul 17 08:39:38 UTC 2023
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 at gmail.com>
Reviewed-by: Daniel Thompson <daniel.thompson at linaro.org>
More information about the dri-devel
mailing list