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)
commit6423cb7f9249aa213c25b7a9fc2c3fbb271a10a4
tree0c9295c3375662f5242ce4aff91448ab590b7c56
parent390218ca9b927c4a8395fbc2c50997f405374194
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