diff options
author | Stephen Kitt <steve@sk2.org> | 2023-01-09 21:02:38 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-01-09 21:33:14 +0100 |
commit | ee4202db16e59e792f570092ad1f440f2d31ea03 (patch) | |
tree | a1ddaf20353db03ef90d3791de0d1b83ed67b53a /lib/hashtable_test.c | |
parent | 8791906e667e44eddd62b341196f93911da8a578 (diff) |
fbdev: atmel_lcdfb: Rework backlight status updates
Instead of checking the state of various backlight_properties fields
against the memorised state in atmel_lcdfb_info.bl_power,
atmel_bl_update_status() should retrieve the desired state using
backlight_get_brightness (which takes into account the power state,
blanking etc.). This means the explicit checks using props.fb_blank
and props.power can be dropped.
The backlight framework ensures that backlight is never negative, so
the test before reading the brightness from the hardware always ends
up false and the whole block can be removed. The framework retrieves
the brightness from the hardware through atmel_bl_get_brightness()
when necessary.
As a result, bl_power in struct atmel_lcdfb_info is no longer
necessary, so remove that while we're at it. Since we only ever care
about reading the current state in backlight_properties, drop the
updates at the end of the function.
Signed-off-by: Stephen Kitt <steve@sk2.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'lib/hashtable_test.c')
0 files changed, 0 insertions, 0 deletions