xf86-video-intel: src/backlight.c

Chris Wilson ickle at kemper.freedesktop.org
Sat Feb 15 22:02:19 CET 2014


 src/backlight.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit eb7d2b19e2829b00317991fba05352e3ba1a1902
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Feb 15 21:00:57 2014 +0000

    backlight: Reject user overrides on OpenBSD
    
    We only handle the singular wscons OpenBSD interface for backlight, so
    explicitly reject any user requests for something else.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/backlight.c b/src/backlight.c
index 5011cb8..70c6559 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -108,6 +108,9 @@ int backlight_open(struct backlight *b, char *iface)
 {
 	struct wsdisplay_param param;
 
+	if (iface != NULL)
+		return -1;
+
 	memset(&param, 0, sizeof(param));
 	param.param = WSDISPLAYIO_PARAM_BRIGHTNESS;
 


More information about the xorg-commit mailing list