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>
This commit is contained in:
Chris Wilson 2014-02-15 21:00:57 +00:00
parent 268842a47f
commit eb7d2b19e2
1 changed files with 3 additions and 0 deletions

View File

@ -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;