]> git.dujemihanovic.xyz Git - u-boot.git/commit
led: Move OF "label" property parsing to core
authorMarek Vasut <marex@denx.de>
Sun, 3 Apr 2022 23:18:02 +0000 (01:18 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 19:39:14 +0000 (15:39 -0400)
commit83c63f0d11856ab5664506f0dd12d7d76c46a3a4
tree253e2659a33b62219d14638c09f759c5bc7f3257
parentaecb338163e2fe55e32d3e2039af737a8bfaaa19
led: Move OF "label" property parsing to core

Every driver in drivers/led/ currently does some form of "label" OF
property parsing in its bind() callback. Move this label parsing to
LED core, since this "label" OF property is a generic property. This
permits code deduplication in subseuqent patches.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Philippe Reynes <philippe.reynes@softathome.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Steven Lawrance <steven.lawrance@softathome.com>
drivers/led/led-uclass.c