summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-10-06 01:09:56 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-10-06 01:09:56 +0000
commit4186c1a571df5650446b62777cb3e61eba2baac4 (patch)
treebd9bcd1b9d29d689449f57f1639e25fc2f3b4193 /sys
parent63312edf8d99a85bf06161710e045ec7fe4ba805 (diff)
drm/amd/display: Restore backlight brightness after system resume
From Kai-Heng Feng 2c60da90ec4467adec602e1b81b3ca256f581031 in linux 4.19.y/4.19.77 bb264220d9316f6bd7c1fd84b8da398c93912931 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index aea345ed92b..cfaec0e7894 100644
--- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1462,6 +1462,7 @@ static int amdgpu_dm_backlight_get_brightness(struct backlight_device *bd)
}
static const struct backlight_ops amdgpu_dm_backlight_ops = {
+ .options = BL_CORE_SUSPENDRESUME,
.get_brightness = amdgpu_dm_backlight_get_brightness,
.update_status = amdgpu_dm_backlight_update_status,
};