Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp572214ybx; Wed, 30 Oct 2019 01:14:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwl1yw6GnG7GnVYMcRMOon23Z5k8VbQ8nwibVCkKOcEYeLxZrdpM44lpwANerh1pF6djnA4 X-Received: by 2002:a17:906:66ce:: with SMTP id k14mr7461899ejp.92.1572423254711; Wed, 30 Oct 2019 01:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572423254; cv=none; d=google.com; s=arc-20160816; b=dmtZKY7/RFrOHD+ikanBt/rP7whbwZrso9ukNhpLcdqFtxoATyjDkvHGI+9nSh+4QZ YvU5qAedP8E9gsO/mNo5O66o66qmZtWaVuKCWXpkHmplA1tZq03kMce1I1GAawXG3xsX orYhLKtHIRuyosUauMiwZRVFFvpEHXFK2DcV5WBVyLHwpDX5bjto7AbNE48dxGPGGnPa RILwhSEL9p/hnGjTYY3aw/znt3tb4CBlFE9ucuwMoQpEHg4FqkahI9wzmRcNK5gSpQeT /3z7uyTDbLtD1eSnpMZ3TM+mM/taRWv+lnEQ2dqjqxOleSYAaL4Wb0aGw+EPmDAFFSpr zlTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=RIbNp1bBy2O6YZV79H1nXIOrpRDdJQca9u+dx3uFxVA=; b=t/TtUrASYnmv1758ZkWN5qY3qXvaUWqynJvrCWjlcycMBXaHMNNt1coNsPHTFnvQCi r3/uKHDqP6vTgqNSSmH4TusZ1IISDouAE0Hy+4nBjxgC2Os8NtxQT2R9OpW6zod0CsYE JAupPflawBbqv29poxuJ/fYa/P35OgtbiwkuVk4nPv2saauy9B/EXmPrt7gnA9/LrjsQ hP5J31FHE085O1yiR6xdNrwsPRGwWRSRBq22Vi4qQX+kcQN8CNv3Xky9bT6nzHMDtb/1 pO3C4/42nm33YdLTpqHdyupXq0q7OQaLlKY1NHGFWWmC3bNdhhAoK15+bOQbSuhwwfw9 EOiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si757213ejy.337.2019.10.30.01.13.39; Wed, 30 Oct 2019 01:14:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbfJ3IMr (ORCPT + 99 others); Wed, 30 Oct 2019 04:12:47 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5225 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726028AbfJ3IMq (ORCPT ); Wed, 30 Oct 2019 04:12:46 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0CFD9C31AF34DDE2485D; Wed, 30 Oct 2019 16:12:43 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Wed, 30 Oct 2019 16:12:35 +0800 From: zhong jiang To: CC: , , , , , Subject: [PATCH] mt7601u: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops Date: Wed, 30 Oct 2019 16:08:44 +0800 Message-ID: <1572422924-58878-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is more clear to use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs file operation rather than DEFINE_SIMPLE_ATTRIBUTE. Signed-off-by: zhong jiang --- drivers/net/wireless/mediatek/mt7601u/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt7601u/debugfs.c b/drivers/net/wireless/mediatek/mt7601u/debugfs.c index 5e54983..300242b 100644 --- a/drivers/net/wireless/mediatek/mt7601u/debugfs.c +++ b/drivers/net/wireless/mediatek/mt7601u/debugfs.c @@ -27,7 +27,7 @@ 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) -- 1.7.12.4