mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mac80211: move DT led configuration to the "led" child node
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -108,6 +108,7 @@ static int mt76_led_init(struct mt76_dev *dev)
|
||||
mt76_tpt_blink,
|
||||
ARRAY_SIZE(mt76_tpt_blink));
|
||||
|
||||
np = of_get_child_by_name(np, "led");
|
||||
if (np) {
|
||||
if (!of_property_read_u32(np, "led-sources", &led_pin))
|
||||
dev->led_pin = led_pin;
|
||||
|
||||
Reference in New Issue
Block a user