projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268842a
)
backlight: Reject user overrides on OpenBSD
author
Chris Wilson
<chris@chris-wilson.co.uk>
Sat, 15 Feb 2014 21:00:57 +0000
(21:00 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Sat, 15 Feb 2014 21:02:11 +0000
(21:02 +0000)
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@chris-wilson.co.uk>
src/backlight.c
patch
|
blob
|
history
diff --git
a/src/backlight.c
b/src/backlight.c
index
5011cb8
..
70c6559
100644
(file)
--- 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(¶m, 0, sizeof(param));
param.param = WSDISPLAYIO_PARAM_BRIGHTNESS;