diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-07-08 14:53:38 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-07-11 10:15:03 +0200 |
commit | bff23714bc36a1322d0f14519022df0d1a4b21f3 (patch) | |
tree | df64ffc4e17874fd4e4da43a5ff62649053b9149 /fs/xfs/xfs_ioctl.c | |
parent | a3eac76cdf7225aa1f87aa4514664f0372b9a1c1 (diff) |
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 'fs/xfs/xfs_ioctl.c')
0 files changed, 0 insertions, 0 deletions