]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mt7601u: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops
authorzhong jiang <zhongjiang@huawei.com>
Wed, 30 Oct 2019 08:08:44 +0000 (16:08 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 31 Oct 2019 08:10:35 +0000 (10:10 +0200)
It is more clear to use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs file
operation rather than DEFINE_SIMPLE_ATTRIBUTE.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt7601u/debugfs.c

index 5e549831370c7d6baae9bc712b67c17470f49eb0..300242bce799a4de06288254c5a2cd8640baed8b 100644 (file)
@@ -27,7 +27,7 @@ mt76_reg_get(void *data, u64 *val)
        return 0;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set, "0x%08llx\n");
+DEFINE_DEBUGFS_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set, "0x%08llx\n");
 
 static int
 mt7601u_ampdu_stat_read(struct seq_file *file, void *data)