All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch v6 0/1] leds: pca9532: Add device tree binding
@ 2016-06-14  7:36 Phil Reid
  2016-06-14  7:36 ` [Patch v6 1/1] " Phil Reid
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Reid @ 2016-06-14  7:36 UTC (permalink / raw)
  To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak,
	riku.voipio, rpurdie, j.anaszewski, devicetree, linux-leds
  Cc: Phil Reid

This patch adds very basic device tree binding support to the
pca9532 driver. Sufficent to load driver and enable LEDs.

Change for v6:
- Address warning on 64bit builds by casting to unitptr_t and then int.

Changes for v5:
- Address warning on 64bit builds. Change devid cast to unitptr_t.
- Make pca9532_of_populate_pdata static.

Changes for v4:
- Reference leds/common.txt in documentation.
- Check return value of of_match_device()

Changes for v3:
- Remove state from device tree binding.
  This needs more thought on how to configure which PWM is used.
  And is not essential for a first pass.

Changes for v2:
- Fixup device tree documentation
- Use label propert and fall back to node name,
- Call of_node_put when breaking loop iterating leds.
- Increment the loop counter.
- Add initial state and default-trigger.

Phil Reid (1):
  leds: pca9532: Add device tree binding

 .../devicetree/bindings/leds/leds-pca9532.txt      | 39 +++++++++++
 drivers/leds/leds-pca9532.c                        | 75 ++++++++++++++++++++--
 include/dt-bindings/leds/leds-pca9532.h            | 18 ++++++
 include/linux/leds-pca9532.h                       |  9 ++-
 4 files changed, 132 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-pca9532.txt
 create mode 100644 include/dt-bindings/leds/leds-pca9532.h

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-14  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-14  7:36 [Patch v6 0/1] leds: pca9532: Add device tree binding Phil Reid
2016-06-14  7:36 ` [Patch v6 1/1] " Phil Reid
2016-06-14  8:08   ` Jacek Anaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.