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:
parent
268842a47f
commit
eb7d2b19e2
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue