acpi: add a way to promote/demote vendor backlight drivers
authorCorentin Chary <corentin.chary@gmail.com>
Wed, 13 Jun 2012 07:32:01 +0000 (09:32 +0200)
committerMatthew Garrett <mjg@redhat.com>
Sat, 28 Jul 2012 04:11:48 +0000 (00:11 -0400)
commitf838eb5bd257e8a666aa8c451058fa198df7e299
tree4a0ce12abef63c20367256b24f1bdf183f284238
parent1eb3fe1d3b6b9bf6045eb12f0c3ac12569169870
acpi: add a way to promote/demote vendor backlight drivers

Instead of adding a big blacklist in video_detect.c to set
ACPI_VIDEO_BACKLIGHT_DMI_VENDOR correctly, let external modules
promote or demote themselves when they know the generic video
module won't work.

Currently drivers where using acpi_video_unregister() directly
but:
- That didn't respect any acpi_backlight=[video|vendor] parameter
  provided by the user.
- Any later call to acpi_video_register() would still re-load the
  generic video module (and some gpu drivers are doing that).

This patch fix those two issues.

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/acpi/video_detect.c
include/linux/acpi.h
This page took 0.058487 seconds and 5 git commands to generate.