From patchwork Tue Apr 27 11:41:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 12226575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22733C433B4 for ; Tue, 27 Apr 2021 11:43:13 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7EEC611F2 for ; Tue, 27 Apr 2021 11:43:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7EEC611F2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=5zYqk8kG8eUvAUUmN3HIWJyRkmESn1pgR/FpYRkuyp0=; b=BwCmHv0leprQWqkf9sdYhBlYB2 Fl/wPqb7fQ5TUoRGNUVlaRa03ytVg8kCht2pbyISjim0zz9wUnS2f5MvPbCTIcgR56Um7hE71sW5a +7UXXn1AfItAabl2PKij9mAJUZY5wj+rIqS7OhXka47GB/gL9i7c4IghQYD1w5MNCRO+/oC8PDcSy I6Uh7MGPeAOoE5iAffb+kBixc8O3EcPSMI/8kjfQ2T/urh6mABtQzXUnYPxyUmzIeDH8XumGY3mGF wJOWte5JA0g5dZoBv5NkxCaAuUDxQrOmd3e5jM7/VLEp0JwyL5iaTo3LKsdAH7yGWausI2i6Hfdpa 1QQ7d0Gg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbM5o-001XUa-In; Tue, 27 Apr 2021 11:41:28 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbM5l-001XUH-QS for linux-arm-kernel@desiato.infradead.org; Tue, 27 Apr 2021 11:41:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=eLD5g8i19mOdSmk7TaEmhjAQ9jMYxsG3raHcOPor0hY=; b=kiyyf+6nJkLg6IZEikJybvTNFX 53hdL2mwDNWgzGSSEVPbueILQZKcdXzaYQMkW484ZI5vBeLNLR8FB6QRBGq+tXbRBHoCODaXGPWtB QxNKE6YgkgfRhOfr6TyIYVEX+P7MX/s7tdSKfYuxVKnZHvCHbftsES4Pz0ZJIjSWpufEFY6h1NC9g GF4Gl5ftRfYisyBDOl6Ri0F7kak8Fusm8P9f7dPd4CqELVXsvUxWS9s8vYQUDYqDYWPzMeXxtSjTz sQFwoI4ShXyDC2VP/eMpSsMw1NYVaPX2A+LpxQ2ds9gidz6CwVBBjQSFdQFwl9Or1j61eGr+UzJRK AnpKgFZg==; Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbM5i-00GhKQ-Cq for linux-arm-kernel@lists.infradead.org; Tue, 27 Apr 2021 11:41:24 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210427_044122_650598_E1803B77 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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)