Skip to content

Commit

Permalink
mac80211: move DT led configuration to the "led" child node
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Nov 16, 2017
1 parent f5498d2 commit 8e453b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mac80211.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8e453b3

Please sign in to comment.