mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: rely on phy pointer in mt76_register_debugfs_fops routine signature
This is a preliminary patch to create a mt76 debugfs subir for ext-phy. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
8c9d4b38d2
commit
d0ccc42979
@@ -92,13 +92,14 @@ static int mt76_read_rate_txpower(struct seq_file *s, void *data)
|
||||
}
|
||||
|
||||
struct dentry *
|
||||
mt76_register_debugfs_fops(struct mt76_dev *dev,
|
||||
mt76_register_debugfs_fops(struct mt76_phy *phy,
|
||||
const struct file_operations *ops)
|
||||
{
|
||||
const struct file_operations *fops = ops ? ops : &fops_regval;
|
||||
struct mt76_dev *dev = phy->dev;
|
||||
struct dentry *dir;
|
||||
|
||||
dir = debugfs_create_dir("mt76", dev->hw->wiphy->debugfsdir);
|
||||
dir = debugfs_create_dir("mt76", phy->hw->wiphy->debugfsdir);
|
||||
if (!dir)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user