backlight: Add backlight_device_get_by_name()
authorNoralf Trønnes <noralf@tronnes.org>
Sat, 9 May 2020 14:16:10 +0000 (16:16 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 May 2020 06:39:16 +0000 (07:39 +0100)
commit479da1f538a2f3547e15f9d5922c611b69ec2fbc
tree2ebc2934ac8ba1d0129981f79cd05f257449e4dd
parent62a1d3f623ac0338912fdfbdda9bdac4cadcbc75
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>
drivers/video/backlight/backlight.c
include/linux/backlight.h