summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDonghwa Lee <dh09.lee@samsung.com>2013-09-26 14:31:08 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:44:48 +0900
commita901425f5c85e5b1e00fda7e2052460d9d81c937 (patch)
treef419894090cd2f2837e972547b9164f807ab6d56 /include
parent78aebd366aa8fc0c086c2e4a3f1d10efcfb8fd93 (diff)
downloadlinux-3.10-a901425f5c85e5b1e00fda7e2052460d9d81c937.tar.gz
linux-3.10-a901425f5c85e5b1e00fda7e2052460d9d81c937.tar.bz2
linux-3.10-a901425f5c85e5b1e00fda7e2052460d9d81c937.zip
drm: Add drm backlight subsystem support
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_backlight.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/drm/drm_backlight.h b/include/drm/drm_backlight.h
new file mode 100644
index 00000000000..cbc4380a35a
--- /dev/null
+++ b/include/drm/drm_backlight.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2011 Samsung Electronics Co.Ltd
+ * Author: Joonyoung Shim <jy0922.shim@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ */
+
+enum drm_bl_class_type {
+ BL_BACKLIGHT_CLASS,
+ BL_LCD_CLASS,
+ BL_TSP_CLASS
+};
+
+struct drm_bl_notifier {
+ struct device dev;
+ void (*set_power)(void *priv, int power);
+ void *priv;
+};
+
+extern int drm_bl_register(struct device *dev, int type);
+extern void drm_bl_unregister(struct device *dev);
+extern void drm_bl_dpms(int mode);