summaryrefslogtreecommitdiff
path: root/include/linux/leds-lp3952.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-07-08 15:53:38 +0300
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-07-11 11:15:03 +0300
commitbff23714bc36a1322d0f14519022df0d1a4b21f3 (patch)
treedf64ffc4e17874fd4e4da43a5ff62649053b9149 /include/linux/leds-lp3952.h
parenta3eac76cdf7225aa1f87aa4514664f0372b9a1c1 (diff)
downloadlinux-bff23714bc36a1322d0f14519022df0d1a4b21f3.tar.xz
leds: leds-gpio: Set of_node for created LED devices
When working with Device Tree we iterate over children of "gpio-leds" compatible node and create LED device for each of them. We take care of all common DT properties (label, default trigger, state, etc.), however some triggers may want to support more of them. It could be useful for timer trigger to support setting delay on/off values with Device Tree property. Or for transient trigger to support e.g. duration property. We obviously should handle such properties in triggers, not in generic code. To let trigger drivers read properties from DT node we need to set of_node to point the relevant node. This change allows using all kind of of helpers in e.g. "activate" callbacks. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'include/linux/leds-lp3952.h')
0 files changed, 0 insertions, 0 deletions