aboutsummaryrefslogtreecommitdiff
path: root/include/linux/backlight.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/backlight.h')
-rw-r--r--include/linux/backlight.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index da9a0825e00..4b34eab9d8e 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -11,6 +11,10 @@
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/notifier.h>
+#include <linux/list.h>
+#ifdef CONFIG_SYSEDP_FRAMEWORK
+#include <linux/sysedp.h>
+#endif
/* Notes on locking:
*
@@ -101,8 +105,17 @@ struct backlight_device {
struct notifier_block fb_notif;
struct device dev;
+ struct list_head devices_list;
+#ifdef CONFIG_SYSEDP_FRAMEWORK
+ struct sysedp_consumer *sysedpc;
+#endif
};
+#ifdef CONFIG_SYSEDP_FRAMEWORK
+
+void backlight_update_status(struct backlight_device *bd);
+
+#else
static inline void backlight_update_status(struct backlight_device *bd)
{
mutex_lock(&bd->update_lock);
@@ -110,6 +123,9 @@ static inline void backlight_update_status(struct backlight_device *bd)
bd->ops->update_status(bd);
mutex_unlock(&bd->update_lock);
}
+#endif
+
+extern struct backlight_device *get_backlight_device_by_name(char *name);
extern struct backlight_device *backlight_device_register(const char *name,
struct device *dev, void *devdata, const struct backlight_ops *ops,