diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-09-18 17:13:31 -0700 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-09-23 16:51:58 +0100 |
| commit | cfa0b7d98f3f5b731470ea9b6a6d4825aea1687e (patch) | |
| tree | 8a3791672aa766b55c2c0f1daa797a9268609ba4 /tools/lib/python | |
| parent | 52931e38d7eeb28bacc5e7fef2afddd08baa0ecb (diff) | |
leds: rgb: qcom-lpg: Use fwnode APIs for LED parsing
Convert LED and channel parsing in lpg_add_led() and
lpg_parse_channel() from DT-specific helpers to the fwnode API.
The probe loop now uses device_for_each_child_node_scoped(),
dropping explicit node lifetime handling.
Behaviour is unchanged for device tree: fwnode_get_child_node_count()
and both child iteration helpers skip unavailable children on OF,
and the fwnode handle is passed straight to LED registration.
cdev->default_trigger is only assigned when
fwnode_property_read_string() succeeds, so an absent
linux,default-trigger property no longer yields an uninitialized
pointer.
Assisted-by: LLM
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260919001331.720072-1-rosenp@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
