]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: add of_find_backlight_by_node()
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 29 Nov 2012 03:18:29 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:32 +0000 (16:23 +1100)
commit970e9f83acc56c5a8ef5334661ce102ed1e0b36c
tree2a68e325c6fc910acaf0fdd0aeaf17fe7c7590d3
parentc302047a84cd900297d2734e8b4241275399fc29
backlight: add of_find_backlight_by_node()

This function finds the struct backlight_device for a given device tree
node.  A dummy function is provided so that it safely compiles out if OF
support is disabled.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/backlight.c
include/linux/backlight.h