mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: add led active low to debugfs
In some boards mpcie leds have reversed polarity. This patch allow change led polarity from userspace. Signed-off-by: Pawel Dembicki <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a3e7740ab8
commit
1d23142954
@@ -64,6 +64,7 @@ struct dentry *mt76_register_debugfs(struct mt76_dev *dev)
|
||||
return NULL;
|
||||
|
||||
debugfs_create_u8("led_pin", S_IRUSR | S_IWUSR, dir, &dev->led_pin);
|
||||
debugfs_create_bool("led_active_low", S_IRUSR | S_IWUSR, dir, &dev->led_al);
|
||||
debugfs_create_u32("regidx", S_IRUSR | S_IWUSR, dir, &dev->debugfs_reg);
|
||||
debugfs_create_file("regval", S_IRUSR | S_IWUSR, dir, dev,
|
||||
&fops_regval);
|
||||
|
||||
Reference in New Issue
Block a user