]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: usb: lan78xx: move LED DT configuration to helper
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 5 May 2025 08:43:38 +0000 (10:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2025 11:57:05 +0000 (12:57 +0100)
commit8ba1f33c55d213ee0da1b972b481407cfddeda4a
tree34bda618c561929f2d027ebdfb615fb5420617e0
parentd39f339d2603736ff90b0b32d9aea3b954307fd5
net: usb: lan78xx: move LED DT configuration to helper

Extract the LED enable logic based on the "microchip,led-modes"
property into a new helper function lan78xx_configure_leds_from_dt().

This simplifies lan78xx_phy_init() and improves modularity.
No functional changes intended.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c