summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2019-10-30 11:08:44 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-10-31 11:10:35 +0300
commit086ddf860650cfa3065d6698fae81335b1846cdb (patch)
treeeb6c79f82cfdd54af36881c85ff5e05217428d73 /drivers/net
parent4b15f83adaf170ce55c8a572f66fe26342326983 (diff)
downloadlinux-086ddf860650cfa3065d6698fae81335b1846cdb.tar.xz
mt7601u: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mediatek/mt7601u/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt7601u/debugfs.c b/drivers/net/wireless/mediatek/mt7601u/debugfs.c
index 5e549831370c..300242bce799 100644
--- a/drivers/net/wireless/mediatek/mt7601u/debugfs.c
+++ b/drivers/net/wireless/mediatek/mt7601u/debugfs.c
@@ -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)