Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp233484pxb; Tue, 19 Oct 2021 01:35:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBN5tRj4oGrVBw8l5C8cWYPyWrD6uDwDthuzm1KGF6e5YOXAYtqBU4ipfNa43uforYwWUj X-Received: by 2002:a05:6402:26d1:: with SMTP id x17mr51961996edd.300.1634632505066; Tue, 19 Oct 2021 01:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634632505; cv=none; d=google.com; s=arc-20160816; b=VV9kXDkZIfbe1gqR/qyFTyqKbHUk9w4D+lZUI1EIOsi/6AI7g5bFJ5GW8E7GTSCypo kK9Km9cpGxDgW3lfxPK+lVymLSCtUcnVM1/WUEMGtKksdE29VO16GWyQ6VGaepzl7qjm 6qB8SPtu/1akIi6wukEDrL1Qjo9pS/bctGEwmNokP6JHXdJTHrLVsOFHL7PO2l0rOLB+ 9bC7O+VpzXqnbORD6NlrsU6ufY+BAWZiQqqRgpn7fPPtgBPSSn72TxTEKHuq9y8SLgei 9A3xQMVH0A/0tNHx4Ym8UDoKYtNcqYUd5YrUzrYipqZV195g8h7W4WyERWhkNPkxMvai oS3w== 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=N1LFWPUVb+6OjFKmUIMKLCuSi+LMHCAJ9nQdf6VHUys=; b=kJjySOq3TQ31Z5172HJ/3SzoIlBLU1EsixbEVdnIXnhumswYhcIGQQ0fnFkQhyksgG tRCgdjzVJqYFF0wJMX+X6OUwYJg9mSuFK6bISgpc7v4oFqMoqMbdJuitU33LjMeYLDQ+ Lgzx5Iy7LqBme7taBDXwj1303FQpJSOL4J5jGaQyV5whY5LfUYonTqEFs26baJnnUT7p w/nJ6Co+zvRPniW0Ns1/GVmDG5QPhIjorp17iHv9jcmm+MqUyzBaRa/5h7c9D3zgvlfl gsjCGDNvXAXSjpO5dmYMJlmOdvRyWOAV7+Nz0P2n3C52TUzY034id1VwRvhj6POuz4qh 8DhA== 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 nb40si29046349ejc.323.2021.10.19.01.34.34; Tue, 19 Oct 2021 01:35:05 -0700 (PDT) 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 S234592AbhJSId4 (ORCPT + 99 others); Tue, 19 Oct 2021 04:33:56 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:37967 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234537AbhJSIdw (ORCPT ); Tue, 19 Oct 2021 04:33:52 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UsuQa83_1634632296; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UsuQa83_1634632296) by smtp.aliyun-inc.com(127.0.0.1); Tue, 19 Oct 2021 16:31:37 +0800 From: Yang Li To: krzysztof.kozlowski@canonical.com Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Yang Li Subject: [PATCH -next] memory: tegra20-emc: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Tue, 19 Oct 2021 16:31:34 +0800 Message-Id: <1634632294-27413-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/tegra20-emc.c:915:0-23: WARNING: tegra_emc_debug_max_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE ./drivers/memory/tegra/tegra20-emc.c:885:0-23: WARNING: tegra_emc_debug_min_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li --- 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 77c5cd5..f4d3470 100644 --- a/drivers/memory/tegra/tegra20-emc.c +++ b/drivers/memory/tegra/tegra20-emc.c @@ -882,7 +882,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"); @@ -912,7 +912,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