summaryrefslogtreecommitdiff
path: root/include/acpi/video.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-06-16 17:27:49 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-19 02:10:49 +0300
commit5fd677b75d2eefde6b8e3f510a5c2d4540eba1fe (patch)
tree43871a7de0bac4938c568f1b2fffe03e4f10b358 /include/acpi/video.h
parent87521e16a7abbf3fa337f56cb4d1e18247f15e8a (diff)
downloadlinux-5fd677b75d2eefde6b8e3f510a5c2d4540eba1fe.tar.xz
acpi-video-detect: Unregister acpi_video backlight when dmi quirks are added
Make acpi_video_set_dmi_backlight_type() call acpi_video_unregister_backlight() when the new dmi quirk results in the desired backlight interface being of a type other then acpi_backlight_video. This avoid the need for the second if in the following construction which is currently found in many platform/x86 drivers: if (prefer_vendor_quirk) acpi_video_dmi_promote_vendor(); if (!acpi_video_backlight_support()) acpi_video_unregister_backlight() This second if-block will be removed from the platform drivers as part of their conversion to the new backlight interface selection API. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/video.h')
0 files changed, 0 insertions, 0 deletions