[PATCH v1 0/4] leds: Introduce and use fwnode_get_child_node_count()

From: Andy Shevchenko
Date: Mon Mar 10 2025 - 11:09:35 EST


This series was inspired during review of "Support ROHM BD79124 ADC" [1].
The three conversion patches are the examples of the new API in use.

Since the first two examples of LEDS, in case of posotove response it may
be routed via that tree and immutable branch/tag shared with others, e.g.,
IIO which Matti's series is targeting and might be dependent on. The USB
patch can be applied later separately, up to the respective maintainers.

Link: https://lore.kernel.org/r/cover.1741610847.git.mazziesaccount@xxxxxxxxx> [1]

Andy Shevchenko (4):
device property: Split fwnode_get_child_node_count()
leds: pwm-multicolor: Use fwnode_get_child_node_count()
leds: ncp5623: Use fwnode_get_child_node_count()
usb: typec: tcpm: Use fwnode_get_child_node_count()

drivers/base/property.c | 12 ++++++------
drivers/leds/rgb/leds-ncp5623.c | 5 ++---
drivers/leds/rgb/leds-pwm-multicolor.c | 7 +++----
drivers/usb/typec/tcpm/tcpm.c | 6 ++----
include/linux/property.h | 7 ++++++-
5 files changed, 19 insertions(+), 18 deletions(-)

--
2.47.2