Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4028280rdb; Wed, 30 Aug 2023 13:10:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtqFhyRCMihlRSBz6fZOz8TIzRecAscl6Nixz6Mk4hY1e7ikB/u/4Uw28FfJi2LVz2kIkN X-Received: by 2002:a17:903:18a:b0:1b7:ca9c:4f5c with SMTP id z10-20020a170903018a00b001b7ca9c4f5cmr763036plg.28.1693426215075; Wed, 30 Aug 2023 13:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693426215; cv=none; d=google.com; s=arc-20160816; b=IfnZdpRuTbkMprP1+75SFI37RkoC6QyvhJwQASyZYN+2yIlL5Wnm5oMI8Ci+Qcf1P/ BiXTMs24EY588BmBtrwKyPXBoM2uBT9dpu2/qOilGN6b+1+Tqn8eLUXb+/QnETGDe9Z1 9O599J6VdN8m1ad+A3WQyZyUpMtAF39vl8lnLaz5rMckUWynVlYvLP575WsD4K+Qub62 FHXSmrKbkj2peVBYzgU0oEqFF7UU2I50LnBf3NLSjHVsgaNqDnOc1HgZLfw/HVEo+Mbl MTsBhBqO0Es46CHBIRwMbYmMCnc7B9U3EbOo1AJl7LXZ3dIx6CC2iJDjcMchE1ZH1Ikk QeCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=F1r1qZlxAH9DgaS4JcAfUhjVYgnO+k4P9JefEezUSKw=; fh=Q1OWZrLoMZHRUcEqJpTwA0Ev5Y4OpJr6afgxSHJxzfI=; b=Zh4rPBzKFi5bAy7yuZS0kN+4K9MX2LnD72ZSGX8/RlayFnXvA6rM9fXtqWa7EsVyHr vLHjbh4u456OuJ357I8MM4zCklXJvFJrGtszsuUSEuQjAgRFcyh8Vb4UbQG69D79oV+5 h4NQQYYb9gfg0E1GryTYwS+la+rBA5+lLXh4FK4YLdhAhPpbHxxwuaBlSLEzqZiuy4K7 vyGVz/e61QeeGrTvuunn5RWsOrh+enJ/0jNWgIx+iNYYb6CLosN4w9n15KpfE5IH4eR+ ximGHMVAnUXUAcW4thkcIV4E7n3CmkTAvBnhwoZyCGwFv+l8wOMp1ws8Phx81HOQxuAO 6yBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gnNPxu55; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a170902f38a00b001b8ac8008a4si2284125ple.598.2023.08.30.13.09.58; Wed, 30 Aug 2023 13:10:15 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gnNPxu55; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239262AbjH3SkT (ORCPT + 99 others); Wed, 30 Aug 2023 14:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245674AbjH3Px0 (ORCPT ); Wed, 30 Aug 2023 11:53:26 -0400 X-Greylist: delayed 497 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 30 Aug 2023 08:53:24 PDT Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 516A1193 for ; Wed, 30 Aug 2023 08:53:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ED39AB81F57 for ; Wed, 30 Aug 2023 15:45:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C900C433CC; Wed, 30 Aug 2023 15:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693410304; bh=NiQRt4bsIONLVxmfGlIB8xOVLmN2sexG/RoTqc5xU/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gnNPxu55t69M9MEH5fJjGRUtQrVVWMrM/Jm/FOFZ5EUmvpGINUZTquxJ9JijEXAdn SgbcvdZCUH1wKw4MHoa+FPcxyDDfMrEPvq6unPqUXOXvXIPGkhTFiGHGt3bDLCNP8E D84XynJqierIMHi9w1DMMjS+jsyJWLrasQGLmCQFtg3jRqL7Q0Xr0ZT4x/vD2LW009 U8bvlHNRXkVxfws3pYyXCdv+CirPp3y1AV2I+2+YzYP+DeeNsiklVgM64pgse5e0mt CgjaOrfWvi45WRdTHVs2ymRRWjuxa4H8gVYMziv761GncvcyR2F8ewcVEBnmsXHzfV gzjq5n1ep9PHA== Date: Wed, 30 Aug 2023 08:45:02 -0700 From: Nathan Chancellor To: Charles Keepax Cc: lee@kernel.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: cs42l43: Use correct macro for new-style PM runtime ops Message-ID: <20230830154502.GA954483@dev-arch.thelio-3990X> References: <20230822114914.340359-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230822114914.340359-1-ckeepax@opensource.cirrus.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 On Tue, Aug 22, 2023 at 12:49:14PM +0100, Charles Keepax wrote: > The code was accidentally mixing new and old style macros, update the > macros used to remove an unused function warning whilst building with > no PM enabled in the config. > > Fixes: ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver") > Signed-off-by: Charles Keepax This is obviously the correct fix for the reported warnings. Reviewed-by: Nathan Chancellor > --- > drivers/mfd/cs42l43.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c > index 37b23e9bae823..7b6d07cbe6fc6 100644 > --- a/drivers/mfd/cs42l43.c > +++ b/drivers/mfd/cs42l43.c > @@ -1178,8 +1178,8 @@ static int cs42l43_runtime_resume(struct device *dev) > } > > EXPORT_NS_GPL_DEV_PM_OPS(cs42l43_pm_ops, MFD_CS42L43) = { > - SET_SYSTEM_SLEEP_PM_OPS(cs42l43_suspend, cs42l43_resume) > - SET_RUNTIME_PM_OPS(cs42l43_runtime_suspend, cs42l43_runtime_resume, NULL) > + SYSTEM_SLEEP_PM_OPS(cs42l43_suspend, cs42l43_resume) > + RUNTIME_PM_OPS(cs42l43_runtime_suspend, cs42l43_runtime_resume, NULL) > }; > > MODULE_DESCRIPTION("CS42L43 Core Driver"); > -- > 2.30.2 >