summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@intel.com>2016-04-27 20:45:02 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-05-04 23:41:14 +0200
commitf6a4790a5471d7cba406d87f6b41323f40bb93d2 (patch)
tree45f03e6a19e3db9aeddeab3fb1409c421a70acb3 /include
parent04974df8049fc4240d22759a91e035082ccd18b4 (diff)
video / backlight: add two APIs for drivers to use
It is useful to get the backlight device's pointer and use it to set backlight in some cases(the following patch will make use of it) so add the two APIs and export them. Signed-off-by: Aaron Lu <aaron.lu@intel.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/backlight.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index 1e7a69adbe6f..f46b88fa4a09 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -144,6 +144,8 @@ extern void backlight_force_update(struct backlight_device *bd,
extern bool backlight_device_registered(enum backlight_type type);
extern int backlight_register_notifier(struct notifier_block *nb);
extern int backlight_unregister_notifier(struct notifier_block *nb);
+extern struct backlight_device *backlight_device_get_by_type(enum backlight_type type);
+extern int backlight_device_set_brightness(struct backlight_device *bd, unsigned long brightness);
#define to_backlight_device(obj) container_of(obj, struct backlight_device, dev)