summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2020-07-19 11:07:37 +0300
committerLee Jones <lee.jones@linaro.org>2020-07-20 12:27:03 +0300
commit5a09765ddedd34f176275c72ffbe567e428e2dfc (patch)
tree068e056f32ef45103974c23ebf73b2e91f0f67f9 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent2144d00ed0db28c764513080f95e4c49ea9133b0 (diff)
downloadlinux-5a09765ddedd34f176275c72ffbe567e428e2dfc.tar.xz
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 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions