summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-05 01:48:13 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-05 01:48:13 (GMT)
commit56c67ce187a899f76c5f22dd30fd9cfc3d95a0c2 (patch)
treeded4c39fa3e405512e78988e8a3dff16405d9897
parentebea76f5b95caddb59f49a3e288da26358e6ab1f (diff)
parent35d0565b95547ec12d025dc9b1394f22968d113d (diff)
downloadlinux-56c67ce187a899f76c5f22dd30fd9cfc3d95a0c2.tar.xz
Merge tag 'pm+acpi-3.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI backlight fix from Rafael Wysocki: "This is a simple fix for an ACPI backlight regression introduced by a recent commit that overlooked a corner case which should have been taken into account" * tag 'pm+acpi-3.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI / video: update condition to check if device is in _DOD list
-rw-r--r--drivers/acpi/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 807a88a..9d75ead 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -1164,7 +1164,8 @@ static bool acpi_video_device_in_dod(struct acpi_video_device *device)
return true;
for (i = 0; i < video->attached_count; i++) {
- if (video->attached_array[i].bind_info == device)
+ if ((video->attached_array[i].value.int_val & 0xfff) ==
+ (device->device_id & 0xfff))
return true;
}