diff options
author | José Roberto de Souza <[email protected]> | 2020-10-08 14:19:30 -0700 |
---|---|---|
committer | José Roberto de Souza <[email protected]> | 2020-10-09 14:09:52 -0700 |
commit | d381baad29b43511a7fc34c64402ef65029ab281 (patch) | |
tree | 87310c0a0c6daaa860bc01eb9367d43b31539685 /tools/perf/scripts/python/sctop.py | |
parent | 63b9d9aa8582f13ad265abbf15681e690cfa2109 (diff) |
drm/i915/vbt: Fix backlight parsing for VBT 234+
Child min_brightness is obsolete from VBT 234+, instead the new
min_brightness field in the main structure should be used.
This new field is 16 bits wide, so backlight_precision_bits is needed
to check if value needs to be scaled down but it is only available in
VBT 236+ so working around it by using the also new backlight_level
in the main struct.
v2:
- missed that backlight_data->level is also obsolete
v3:
- s/backlight/brightness to better match specification
- using u16 to specify brightness level instead of a u32 : 16
BSpec: 20149
Reviewed-by: Matt Roper <[email protected]>
Signed-off-by: José Roberto de Souza <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions