mirror of https://gitee.com/openkylin/linux.git
drm/i915: Restore brightness level in aux backlight driver
Some panel will default to zero brightness when turning the panel off and on again. This patch restores last brightness level back when panel is turning back on. Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170511230225.142870-8-puthik@chromium.org
This commit is contained in:
parent
e9c9e5ae8b
commit
2630addf6b
|
@ -127,6 +127,7 @@ static void intel_dp_aux_enable_backlight(struct intel_connector *connector)
|
|||
}
|
||||
|
||||
set_aux_backlight_enable(intel_dp, true);
|
||||
intel_dp_aux_set_backlight(connector, connector->panel.backlight.level);
|
||||
}
|
||||
|
||||
static void intel_dp_aux_disable_backlight(struct intel_connector *connector)
|
||||
|
|
Loading…
Reference in New Issue