Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp271279pxb; Thu, 25 Feb 2021 01:58:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWjE09EBuyf6gUrZZf4EzHj0jiK5zQjcW1WJ36soHIocYKxW4c9DxKr4yX+4VGIiJ8+8YW X-Received: by 2002:a17:907:3d8d:: with SMTP id he13mr1908355ejc.448.1614247098285; Thu, 25 Feb 2021 01:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247098; cv=none; d=google.com; s=arc-20160816; b=LEExDpjAATTWDJeCqT6MLkoLuDXYg0Lg9Re4ENmpAGFKjUxyOe2EnixLFKuudlpM9V +J7LhRm0oaqcygno09xe/q3B00dZ7OGRGwzEUk5HYMcae4UNzUjUT85DN9vNjN7HWnL5 TmhS7FkDgQci30b5wPHxYzBkutghZyuYM2EoGlJjw2Q0DanOsi1BXx9g0tzAENl1469U zVykwG92qvuNj4LJdBv5zjDcJFxd+HusBA7ms9jCMbVdh3XHkKKi7jLRjK+vqi3NEonU 8sYAihunqERaKn4OaheJrzuRxFXmWBrVKEy8rNGZHmrIvhTQTfTCzH4GqxCA/tbu5PmO C6Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=b43vh8hxhRaw6+kE+lZvsbSzar7ZDdGQpq9wAwFxzSw=; b=UHqmErYx975ZBTGT22yiHTyM+6C1BpgBGHiVWlzEq0KMnijQucJJb7LbDRns1KObfW 5XNIhyNg/WtWU8iMH8eKcaVx9EdB7soVYmxuN1U/Ni3wCZxYP4xWmtYyktdmB6F09ElB V7OztM2WG6UYnoU5HW3O/gSuKJ5ENnXQJc5+C25EN2nTusnVgQ6njweO7sXon3t9eLpU TG4jnuBqfL42xzot4w75aIutAE8ifDHEcvifmF5O5aoKe1GeAD61ZS1CVP92S54plkYU p60uHspt+LoUUh8hs2xzasPI5WHzOMeO3E+FVYmOxLdNwr7w+LpM3j+WVn6lHPYQC3eo +85A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si3008053edb.526.2021.02.25.01.57.55; Thu, 25 Feb 2021 01:58:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236112AbhBYJJi (ORCPT + 99 others); Thu, 25 Feb 2021 04:09:38 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:52544 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234781AbhBYJGo (ORCPT ); Thu, 25 Feb 2021 04:06:44 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R801e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UPWiIBt_1614243960; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UPWiIBt_1614243960) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Feb 2021 17:06:00 +0800 From: Yang Li To: krzk@kernel.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Yang Li Subject: [PATCH] memory: tegra: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Thu, 25 Feb 2021 17:05:58 +0800 Message-Id: <1614243958-55847-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/memory/tegra/tegra124-emc.c:1207:0-23: WARNING: tegra_emc_debug_min_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE ./drivers/memory/tegra/tegra124-emc.c:1237:0-23: WARNING: tegra_emc_debug_max_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/memory/tegra/tegra124-emc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/memory/tegra/tegra124-emc.c b/drivers/memory/tegra/tegra124-emc.c index bee8d9f..874e1a0 100644 --- a/drivers/memory/tegra/tegra124-emc.c +++ b/drivers/memory/tegra/tegra124-emc.c @@ -1204,7 +1204,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"); @@ -1234,7 +1234,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"); -- 1.8.3.1