> Date: Tue, 18 Feb 2014 08:06:36 +0000 > From: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > > On Sat, Feb 15, 2014 at 09:29:42PM +0100, Mark Kettenis wrote: > > Fallout from the backlight helper changes. > > Apologies for missing this earlier. I have rearranged the code once > again to try to push the OpenBSD specifics down into src/backlight.c, > can you please check what needs to be fixed up now? No worries. Here's a new diff against master. diff --git a/src/backlight.c b/src/backlight.c index 688819d..3c3f152 100644 --- a/src/backlight.c +++ b/src/backlight.c @@ -32,6 +32,7 @@ #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> +#include <sys/ioctl.h> #include <stdio.h> #include <stdlib.h> @@ -71,13 +72,14 @@ #ifdef __OpenBSD__ #include <dev/wscons/wsconsio.h> +#include <xf86Priv.h> int backlight_set(struct backlight *b, int level) { struct wsdisplay_param param; if (b->iface == NULL) - return; + return -1; if ((unsigned)level > b->max) level = b->max; @@ -129,6 +131,14 @@ int backlight_open(struct backlight *b, char *iface) return param.curval; } +enum backlight_type backlight_exists(const char *iface) +{ + if (iface != NULL) + return BL_NONE; + + return BL_PLATFORM; +} + #else static int _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx