From patchwork Tue Nov 1 08:16:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bo Liu X-Patchwork-Id: 13552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2816352wru; Tue, 1 Nov 2022 01:24:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yYnBe2Zr2rKcVpq115boZBP6fJ5vtft5EshohdoLRcjojkJKb1iDIh2ONl9ckulqyU4VD X-Received: by 2002:a05:6402:190f:b0:461:bd53:27c4 with SMTP id e15-20020a056402190f00b00461bd5327c4mr17597756edz.75.1667291064650; Tue, 01 Nov 2022 01:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667291064; cv=none; d=google.com; s=arc-20160816; b=rmL8MWBePXkIiaT2noLaFkPJAFmH597Bt2rerSGuNmylzUCput/skArgOeB4cQhBDC izEKYq6kJ0UVCxZRiT3mim+CHs70zGQ+gB6vAEvQYbXiUce06eN0FNqQlScvl+XQho/1 ns4k4B9B907W2q2G61zNBDRA+4U5UMLtiYUTaUX9k2GGvr9oH4XCS+br7v3Y/9CvC+Wp 2KmKHw5S5PBr0Fy/HGSjWjMMnxxqr7Y+4LdEFDkIVDyyYiZ0OgSac/r/J+WdIAGMny3L y7qyhiZDckqHEZCjX/YVmxNZk8U/lnN9mfdaLOLgFI4pPcCEXIJvA8XgIi4YXanBp4VZ ojRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:mime-version:message-id :date:subject:cc:to:from; bh=JETO8PsscMMf4ULN+rDDNv0uoo5nO79NTD2ZUhkHO8k=; b=UcEqTiNcTUFwS0ppq5hdxlvyI4Co4qet0YcNRumHNMhpcid+BShUzOuTqzU+qt17t4 NlIyd73wHlF+eSaoO8gN4RgGRVOYo3HvjwmWZVjeSr297n/ytbRCKzx1nG8IS8O3v/Cd /9jPp/x76qKbT6v95WXU2ReVSOsMlI/5Amo4vQQHXbtjgX5oLAZEz1RphxkunGf0sGGg okHdVvrepgwpG22zUaOPQbwEh8ThOhlvgKTTFgoL6ssdm1mkF88is4iAMlzUS+k2aLd/ wbyAczwWdHGqAaT22mPOjWsbYTJs9D6ITGxdK8znULZBdQB1k2XmneQXDnPgCiGcQ4GL +wUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a508d07000000b00463a83ce065si1817940eds.420.2022.11.01.01.24.01; Tue, 01 Nov 2022 01:24:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbiKAIQU (ORCPT + 99 others); Tue, 1 Nov 2022 04:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbiKAIQS (ORCPT ); Tue, 1 Nov 2022 04:16:18 -0400 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1527EE0D; Tue, 1 Nov 2022 01:16:15 -0700 (PDT) Received: from ([60.208.111.195]) by ssh248.corpemail.net ((D)) with ASMTP (SSL) id WLS00012; Tue, 01 Nov 2022 16:16:12 +0800 Received: from localhost.localdomain (10.200.104.97) by jtjnmail201603.home.langchao.com (10.100.2.3) with Microsoft SMTP Server id 15.1.2507.12; Tue, 1 Nov 2022 16:16:13 +0800 From: Bo Liu To: , , CC: , , Bo Liu Subject: [PATCH] memory: tegra20-emc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Tue, 1 Nov 2022 04:16:11 -0400 Message-ID: <20221101081611.8179-1-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 X-Originating-IP: [10.200.104.97] tUid: 20221101161612805c7c5ea3d01c1012e969ff4e38ba2d X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748281395116910079?= X-GMAIL-MSGID: =?utf-8?q?1748281395116910079?= Fix the following coccicheck warning: drivers/memory/tegra/tegra20-emc.c:902:0-23: WARNING: tegra_emc_debug_max_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE drivers/memory/tegra/tegra20-emc.c:872:0-23: WARNING: tegra_emc_debug_min_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Signed-off-by: Bo Liu --- drivers/memory/tegra/tegra20-emc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/memory/tegra/tegra20-emc.c b/drivers/memory/tegra/tegra20-emc.c index bd4e37b6552d..c2b4caccfae9 100644 --- a/drivers/memory/tegra/tegra20-emc.c +++ b/drivers/memory/tegra/tegra20-emc.c @@ -869,7 +869,7 @@ static int tegra_emc_debug_min_rate_set(void *data, u64 rate) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(tegra_emc_debug_min_rate_fops, +DEFINE_DEBUGFS_ATTRIBUTE(tegra_emc_debug_min_rate_fops, tegra_emc_debug_min_rate_get, tegra_emc_debug_min_rate_set, "%llu\n"); @@ -899,7 +899,7 @@ static int tegra_emc_debug_max_rate_set(void *data, u64 rate) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(tegra_emc_debug_max_rate_fops, +DEFINE_DEBUGFS_ATTRIBUTE(tegra_emc_debug_max_rate_fops, tegra_emc_debug_max_rate_get, tegra_emc_debug_max_rate_set, "%llu\n");