summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-04 21:13:24 +0200
committerSimon Horman <horms+renesas@verge.net.au>2013-07-16 06:01:05 +0200
commit8b770e3c9824c98eafe67950ad6e41e09ec9c98a (patch)
treebc1dc14d2ec6b70cec3091b7c57e522d1bd4d64b /include
parentLinux 3.11-rc1 (diff)
downloadlinux-8b770e3c9824c98eafe67950ad6e41e09ec9c98a.tar.xz
linux-8b770e3c9824c98eafe67950ad6e41e09ec9c98a.zip
backlight: Add GPIO-based backlight driver
The GPIO backlight driver controls the backlight in on/off mode through a single GPIO. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/gpio_backlight.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio_backlight.h b/include/linux/platform_data/gpio_backlight.h
new file mode 100644
index 000000000000..5ae0d9c80d4d
--- /dev/null
+++ b/include/linux/platform_data/gpio_backlight.h
@@ -0,0 +1,21 @@
+/*
+ * gpio_backlight.h - Simple GPIO-controlled backlight
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef __GPIO_BACKLIGHT_H__
+#define __GPIO_BACKLIGHT_H__
+
+struct device;
+
+struct gpio_backlight_platform_data {
+ struct device *fbdev;
+ int gpio;
+ int def_value;
+ bool active_low;
+ const char *name;
+};
+
+#endif