leds: pwm-multicolor: Use fwnode_get_child_node_count()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Mar 2025 14:54:52 +0000 (16:54 +0200)
committerLee Jones <lee@kernel.org>
Thu, 10 Apr 2025 09:12:20 +0000 (10:12 +0100)
commit4623cc4e9a5f1b7ad7e6599dfc2a5a4d9d4f5d72
tree98d12d788ec3f56a22bddbb0b8373b47f429be99
parent1490cbb9dbfd0eabfe45f9b674097aea7e6760fc
leds: pwm-multicolor: Use fwnode_get_child_node_count()

Since fwnode_get_child_node_count() was split from its device property
counterpart, we may utilise it in the driver and drop custom implementation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20250310150835.3139322-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/rgb/leds-pwm-multicolor.c