summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_hwmon.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2023-02-07 14:16:26 +0300
committerJani Nikula <jani.nikula@intel.com>2023-02-08 14:16:59 +0300
commita0dcb06d29d9e477e1984dc3859e61568361fc1a (patch)
tree54e03fee54eebf51db770d4185f494b8579680bc /drivers/gpu/drm/i915/i915_hwmon.c
parent70994becf2d0899dc9f8c23154af6aad34b0981d (diff)
downloadlinux-a0dcb06d29d9e477e1984dc3859e61568361fc1a.tar.xz
drm/i915/bios: set default backlight controller index
With backlight controller set to -1 in intel_panel_init_alloc() to distinguish uninitialized values, and controller later being set only if it's present in VBT, we can end up with -1 for the controller: [drm:intel_bios_init_panel [i915]] VBT backlight PWM modulation frequency 200 Hz, active high, min brightness 0, level 255, controller 4294967295 There's no harm if it happens on platforms that ignore controller due to only one backlight controller being present, like on VLV above, but play it safe. Fixes: bf38bba3e7d6 ("drm/i915: Try to use the correct power sequencer intiially on bxt/glk") Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230207111626.1839645-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_hwmon.c')
0 files changed, 0 insertions, 0 deletions