summaryrefslogtreecommitdiff
path: root/src/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backlight.c')
-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;