]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: panel: Honor the VBT PWM min setting for devs with an external PWM controller
authorHans de Goede <hdegoede@redhat.com>
Thu, 3 Sep 2020 11:23:36 +0000 (13:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 6 Sep 2020 13:53:24 +0000 (15:53 +0200)
commit9a6ae5b354ed09f61cfa3acbb19fecd64f46b097
tree5b5a15ade344a5cf2852014a4336f9fe9d43bce9
parent6b51e7d23aa8591557d742c96e2f87c09ff54a48
drm/i915: panel: Honor the VBT PWM min setting for devs with an external PWM controller

So far for devices using an external PWM controller (devices using
pwm_setup_backlight()), we have been hardcoding the minimum allowed
PWM level to 0. But several of these devices specify a non 0 minimum
setting in their VBT.

Change pwm_setup_backlight() to use get_backlight_min_vbt() to get
the minimum level.

Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200903112337.4113-17-hdegoede@redhat.com
drivers/gpu/drm/i915/display/intel_panel.c