aboutsummaryrefslogtreecommitdiff
path: root/drivers/greybus
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2020-07-19 10:07:37 +0200
committerLee Jones <lee.jones@linaro.org>2020-07-20 10:27:03 +0100
commit5a09765ddedd34f176275c72ffbe567e428e2dfc (patch)
tree068e056f32ef45103974c23ebf73b2e91f0f67f9 /drivers/greybus
parent2144d00ed0db28c764513080f95e4c49ea9133b0 (diff)
backlight: as3711_bl: Simplify update_status
Replaces the open-coded checks of the state, with the backlight_get_brightness() helper. This increases readability of the code and align the functionality across the drivers. Furthermore drop the debug prints in update_status(). If we need debug printing then we can add it to the backlight core. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/greybus')
0 files changed, 0 insertions, 0 deletions