summaryrefslogtreecommitdiff
path: root/include/linux/backlight.h
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2020-05-09 16:16:10 +0200
committerLee Jones <lee.jones@linaro.org>2020-05-11 07:39:16 +0100
commit479da1f538a2f3547e15f9d5922c611b69ec2fbc (patch)
tree2ebc2934ac8ba1d0129981f79cd05f257449e4dd /include/linux/backlight.h
parent62a1d3f623ac0338912fdfbdda9bdac4cadcbc75 (diff)
downloadlwn-479da1f538a2f3547e15f9d5922c611b69ec2fbc.tar.gz
lwn-479da1f538a2f3547e15f9d5922c611b69ec2fbc.zip
backlight: Add backlight_device_get_by_name()
Add a way to lookup a backlight device based on its name. Will be used by a USB display gadget getting the name from configfs. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Acked-by: Jingoo Han <jingoohan1@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/backlight.h')
-rw-r--r--include/linux/backlight.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index c7d6b2e8c3b5..56e4580d4f55 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -190,6 +190,7 @@ extern void backlight_force_update(struct backlight_device *bd,
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);
+struct backlight_device *backlight_device_get_by_name(const char *name);
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)