drm/amdgpu: Restore LCD backlight level on resume
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2015 17:53:30 +0000 (13:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2015 19:08:53 +0000 (15:08 -0400)
commit74b3112e95073b351e3b0b9799795bc76f8415fa
tree55e7e7bff6fb594093947cbcdc48e9e07f7e1968
parent4281f46ef839050d2ef60348f661eb463c21cc2e
drm/amdgpu:  Restore LCD backlight level on resume

Instead of only enabling the backlight (which seems to set it to max
brightness), just re-set the current backlight level, which also takes
care of enabling the backlight if necessary.

Port of radeon commit:
drm/radeon: Restore LCD backlight level on resume (>= R5xx)

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c