summaryrefslogtreecommitdiff
path: root/src/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-06-17 17:55:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-06-17 17:58:28 +0100
commitb24e7581bd1e5a0215cb73ec87093ebf03c20278 (patch)
tree9e2245cd219cfa3b98f121dbccb87f135eeaba86 /src/uxa
parentf1f2e7202854c725293c63293de1552337c717b2 (diff)
backlight: Factor known names into preferred interfaces
Since the /sys/device/backlight never turned up we face an issue with disambiguating the backlight on multi-GPU devices. Both intel_backlight and nv_backlight are presented are raw interfaces, and on modern systems the ACPI interface is defunct, so we need a way to distinguish them. So, we fallback to our priority table of known interfaces and rank them accordingly, first by class (platform, native, raw) and then by priority. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/uxa')
-rw-r--r--src/uxa/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
index 0cdc8d26..8bf0184d 100644
--- a/src/uxa/intel_display.c
+++ b/src/uxa/intel_display.c
@@ -192,7 +192,7 @@ intel_output_backlight_init(xf86OutputPtr output)
str = xf86GetOptValString(intel->Options, OPTION_BACKLIGHT);
if (str != NULL) {
- if (backlight_exists(str) != BL_NONE) {
+ if (backlight_exists(str)) {
intel_output->backlight_active_level =
backlight_open(&intel_output->backlight,
strdup(str));