Displaying 1 result from an estimated 1 matches for "backlight_class".
2010 Aug 05
0
[PATCH] drmmode: Add backlight support
...uot;X11/Xatom.h"
+#include <X11/Xatom.h>
+#include <fcntl.h>
#include <sys/ioctl.h>
#ifdef HAVE_LIBUDEV
#include "libudev.h"
#endif
+
+#define BACKLIGHT_NAME "Backlight"
+#define BACKLIGHT_DEPRECATED_NAME "BACKLIGHT"
+#define BACKLIGHT_CLASS "/sys/class/backlight"
+
+/* List of available kernel interfaces in priority order */
+static char *backlight_interfaces[] = {
+ "nv_backlight",
+ NULL,
+};
+/* Must be long enough for BACKLIGHT_CLASS + '/' + longest in above table +
+ * '/' + "max_ba...