ACPI / video: Unregister the backlight device if a raw one shows up later
authorHans de Goede <hdegoede@redhat.com>
Wed, 21 May 2014 13:39:55 +0000 (15:39 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 May 2014 23:29:01 +0000 (01:29 +0200)
commit53a92ba7e3762154df01c4f4f5d871df0587c96b
treef16e31ee92a4798099227f818c284529787f23a2
parent3cc6919bd61315ea60baf95f3f9868aacfd1ace4
ACPI / video: Unregister the backlight device if a raw one shows up later

When video.use_native_backlight=1 and non intel gfx are in use, the raw
backlight device of the gfx driver will show up after acpi-video has done its
acpi_video_verify_backlight_support() check.

This causes video.use_native_backlight=1 to not have the desired result.

This patch fixes this by adding a backlight notifier and when a raw
backlight is registered or unregistered re-doing the
acpi_video_verify_backlight_support() check.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video.c