diff options
| author | José Roberto de Souza <jose.souza@intel.com> | 2020-10-08 14:19:30 -0700 |
|---|---|---|
| committer | José Roberto de Souza <jose.souza@intel.com> | 2020-10-09 14:09:52 -0700 |
| commit | d381baad29b43511a7fc34c64402ef65029ab281 (patch) | |
| tree | 87310c0a0c6daaa860bc01eb9367d43b31539685 /lib/mpi/mpi-internal.h | |
| 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 <matthew.d.roper@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201008211932.24989-1-jose.souza@intel.com
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions
