]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pass down brightness values to enable/disable backlight callbacks
authorLyude Paul <lyude@redhat.com>
Fri, 4 Dec 2020 22:35:57 +0000 (17:35 -0500)
committerJani Nikula <jani.nikula@intel.com>
Wed, 23 Dec 2020 15:44:04 +0000 (17:44 +0200)
commit69adebd3778b4b4186335806308ba53224383a77
tree0c9295c3375662f5242ce4aff91448ab590b7c56
parent3ff459aa73e5c68ecf79d623c69ed355298c5334
drm/i915: Pass down brightness values to enable/disable backlight callbacks

Instead of using intel_panel->backlight.level, have the caller provide us
with the current panel backlight value. We'll need this for when we
separate PWM-related backlight callbacks from other means of backlight
control (like DPCD backlight controls), as the caller of each PWM callback
will be responsible for converting the current brightness value to it's
respective PWM level.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201204223603.249878-4-lyude@redhat.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
drivers/gpu/drm/i915/display/intel_panel.c