summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-15 21:00:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-15 21:02:11 +0000
commiteb7d2b19e2829b00317991fba05352e3ba1a1902 (patch)
treefdebb6fe3f55329c234b7afbb078c1e1ffbb2e9d
parent268842a47f05508fc7e1c69cd21e8e66a000dcde (diff)
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@chris-wilson.co.uk>
-rw-r--r--src/backlight.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backlight.c b/src/backlight.c
index 5011cb86..70c65591 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;