diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-09-17 22:59:18 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-09-18 21:03:10 +0200 |
commit | fbf3093466d05461e3f307ffe6b1150daa4b065b (patch) | |
tree | 2412b22bf0dd832dc23218398e98b51200f4eb49 /tools/perf/scripts/python/check-perf-trace.py | |
parent | dec4ddbe1d4a4414092309611cc97e6b9dc7ec3f (diff) |
drm/gma500: Use backlight_get_brightness() to get the brightness
Use backlight_get_brightness() instead of directly referencing
bd->props.brightness. This will take backlight_is_blank() into account,
properly setting brightness to 0 when screen-blanking has been requested
through the backlight sysfs interface.
Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220917205920.647212-4-hdegoede@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions