mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: move leds struct in mt76_phy
Move leds struct in mt76_phy in order to have leds associated to phy (e.g. in dbdc mode) instead of per device. Tested-by: Frank Wunderlich <[email protected]> Co-developed-by: Ryder Lee <[email protected]> Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
551201379e
commit
14fbb6d6e8
@@ -112,8 +112,8 @@ mt76_register_debugfs_fops(struct mt76_phy *phy,
|
||||
if (!dir)
|
||||
return NULL;
|
||||
|
||||
debugfs_create_u8("led_pin", 0600, dir, &dev->leds.pin);
|
||||
debugfs_create_bool("led_active_low", 0600, dir, &dev->leds.al);
|
||||
debugfs_create_u8("led_pin", 0600, dir, &phy->leds.pin);
|
||||
debugfs_create_bool("led_active_low", 0600, dir, &phy->leds.al);
|
||||
debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg);
|
||||
debugfs_create_file_unsafe("regval", 0600, dir, dev, fops);
|
||||
debugfs_create_file_unsafe("napi_threaded", 0600, dir, dev,
|
||||
|
||||
Reference in New Issue
Block a user