Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4416384pxy; Tue, 27 Apr 2021 04:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyxYyIYKKhAeEul4/BZiL08nw9+C4vrVI49Z6oK3tJsdao8Ksc7jNMkAxSmeoP2VgRzAvw X-Received: by 2002:a05:6402:2808:: with SMTP id h8mr3765494ede.249.1619523818960; Tue, 27 Apr 2021 04:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619523818; cv=none; d=google.com; s=arc-20160816; b=JsS0ss6ySvzoy5hHRdeQGox0vWXzmwMPcY4QxChsqMgZCIwsLRhJiBENxMzsIH6JTv DnDdSOk9Df+rfPN4A+bRfnoAl0Z2FPiD1ZhKiGQrBuzkDvk3Zy364p4XO+ZmCc0tKURa Ytq+wNO9knOvu7kwN4I4jDDKK7I05wY/HVKKgfuBf4lz2nsO+UFxPppg7YwntJVzZXYl AXlL9jLvZN/fftvjH/qPJVwEMgTpUi2V3XsN3e8wYQHAhYzHvSY25Xn3JmsYksHBP9Tm /ZOWYavJ6RBVHmkw757Blu1rs65yG8q5zfOh1E2XE+QorB5MRvxYaYMPiiZEMbcP630W Zsgw== 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=eLD5g8i19mOdSmk7TaEmhjAQ9jMYxsG3raHcOPor0hY=; b=dQlZpbq7Bk1IlK5BHZzZ3X+a8X7G99TA0EpBQmpQui7SradLxY+rdpJc94uDxT2dst fbTJHLUUqsrdDPRABOh1gJUIH9BvAPGU91Q0cT0MaJM3owS7HELDHTUzEK6BTjfKsL77 8XICMeNU/z0rS3zegGz/bVeAWZe4YfWbgqwVIwK1ftJhVpc+WeVu0lk+BtMTR8gR1McP 1+b/9iLu7fZHHxs0ybsjxyMy3obJt+BCv8qaqdB61IvIwrmnEpocSO9d9F0izkvwCYfM YFGrSADXQzWNwzZSY80cZ44MlJEqYPc3EwHLrU0YcAnbhKvPH5RLKfkWu4hsUKq+44fm +4UQ== 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 e19si2199849edy.251.2021.04.27.04.43.15; Tue, 27 Apr 2021 04:43:38 -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 S235443AbhD0LmB (ORCPT + 99 others); Tue, 27 Apr 2021 07:42:01 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:34402 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhD0LmB (ORCPT ); Tue, 27 Apr 2021 07:42:01 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R351e4;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_---0UX-4FMn_1619523675; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UX-4FMn_1619523675) by smtp.aliyun-inc.com(127.0.0.1); Tue, 27 Apr 2021 19:41:16 +0800 From: Yang Li To: ssantosh@kernel.org Cc: nm@ti.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Yang Li Subject: [Resend PATCH v2] soc: ti: smartreflex after the relocation to maintain Date: Tue, 27 Apr 2021 19:41:13 +0800 Message-Id: <1619523673-120782-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/soc/ti/smartreflex.c:820:0-23: WARNING: pm_sr_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li Reviewed-by: Nishanth Menon --- Change in v2: --According to Nishanth Menon's suggestion, the subject has been corrected. https://lore.kernel.org/patchwork/patch/1383883/ drivers/soc/ti/smartreflex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti/smartreflex.c index 5376f3d..b3c7460 100644 --- a/drivers/soc/ti/smartreflex.c +++ b/drivers/soc/ti/smartreflex.c @@ -817,7 +817,7 @@ static int omap_sr_autocomp_store(void *data, u64 val) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(pm_sr_fops, omap_sr_autocomp_show, +DEFINE_DEBUGFS_ATTRIBUTE(pm_sr_fops, omap_sr_autocomp_show, omap_sr_autocomp_store, "%llu\n"); static int omap_sr_probe(struct platform_device *pdev) -- 1.8.3.1