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:
Lorenzo Bianconi
2021-10-19 11:29:44 +02:00
committed by Felix Fietkau
parent 8c9d4b38d2
commit d0ccc42979
4 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -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;