Skip to content
Commit 4bf7ddd2 authored by Luca Weiss's avatar Luca Weiss Committed by Lee Jones
Browse files

backlight: lm3630a: Don't set bl->props.brightness in get_brightness



There's no need to set bl->props.brightness, the get_brightness function
is just supposed to return the current brightness and not touch the
struct.

With that done we can also remove the 'goto out' and just return the
value.

Fixes: 0c2a665a ("backlight: add Backlight driver for lm3630 chip")
Signed-off-by: default avatarLuca Weiss <luca@z3ntu.xyz>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240220-lm3630a-fixups-v1-2-9ca62f7e4a33@z3ntu.xyz


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent ad9aeb0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment