aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSam Ravnborg <[email protected]>2020-07-19 10:07:26 +0200
committerLee Jones <[email protected]>2020-07-20 10:17:12 +0100
commit1c91b46555aa1dd86331025e62d55d92459e0faf (patch)
tree7e7ae33dba1ee84b28acc7ce9b6af4d9a0568a07 /tools/perf/scripts/python/export-to-postgresql.py
parent4edfe2248d21d661dbcd735e5d28a36cfa826e11 (diff)
backlight: backlight: Add backlight_is_blank()
The backlight support has three properties that express the state: - power - state - fb_blank It is un-documented and easy to get wrong. Add backlight_is_blank() helper to make it simpler for drivers to get the check of the state correct. A lot of drivers also includes checks for fb_blank. This check is redundant when the state is checked and thus not needed in this helper function. But added anyway to avoid introducing subtle bugs due to the creative use of fb_blank in some drivers. Introducing this helper will for some drivers results in added support for fb_blank. This will be a change in functionality, which will improve the backlight driver. Rolling out this helper to all relevant backlight drivers will eliminate almost all accesses to fb_blank. Signed-off-by: Sam Ravnborg <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Reviewed-by: Peter Ujfalusi <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions