backlight: lm3630a: Use backlight_get_brightness helper in update_status
authorLuca Weiss <luca@z3ntu.xyz>
Mon, 19 Feb 2024 23:11:21 +0000 (00:11 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 09:03:29 +0000 (09:03 +0000)
commitdc0ba74e51a7497c3c88ab7c31aa3723645c6f9a
tree6a2ce5e556b3e56750bff3df9114683bcaccf7c7
parent4bf7ddd2d2f0f8826f25f74c7eba4e2c323a1446
backlight: lm3630a: Use backlight_get_brightness helper in update_status

As per documentation "drivers are expected to use this function in their
update_status() operation to get the brightness value.".

With this we can also drop the manual backlight_is_blank() handling
since backlight_get_brightness() is already handling this correctly.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240220-lm3630a-fixups-v1-3-9ca62f7e4a33@z3ntu.xyz
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/lm3630a_bl.c