From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AAFECD6E5A for ; Wed, 11 Oct 2023 11:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Iu2J1+k36sr9D5T8uQyQ/OtFpIJa0ObJXiUWb8/ucUY=; b=mW6nEJwfl+1099 qd5geAK2GdRsg7BVpxehmptDWzy9tC6t6QC1aSPfaqsMF4E4baezNghyOt3V5TxofIIotWFmy/RAJ bSnzOJnPPlz44s9pDaIeba8OGY/CkVV7W4IN1TGPT6bm/ILGjeX3rY8PWt3ejV9Og0BhGVYuBFb6p qZWtYNUbknmiq0VwFutogN/gU87vEvY7h0r62JGaXrj9jc/5vNx23hRmBIPgxe9HbKJuIYUCX6UbV O9pzj3asYEFSQ6U15WE5y94n+F1D5skGelNc2m1dnYKHFqeOMabZaLO4ABrgIYm4c2dib3ovEFjcW FsukKSFmUi1nQxdrU5xA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqXJb-00Fkbf-37; Wed, 11 Oct 2023 11:23:47 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqXJa-00Fkb9-0H for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 11:23:47 +0000 Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4S59LK2X2Rz6JB3b; Wed, 11 Oct 2023 19:20:41 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 11 Oct 2023 12:23:44 +0100 Date: Wed, 11 Oct 2023 12:23:43 +0100 From: Jonathan Cameron To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= CC: Thierry Reding , Fabrice Gasnier , Maxime Coquelin , Alexandre Torgue , , , , , "Florian Fainelli" Subject: Re: [PATCH 09/11] pwm: stm32: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions Message-ID: <20231011122343.00006940@Huawei.com> In-Reply-To: <20231010075112.755178-10-u.kleine-koenig@pengutronix.de> References: <20231010075112.755178-1-u.kleine-koenig@pengutronix.de> <20231010075112.755178-10-u.kleine-koenig@pengutronix.de> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231011_042346_268160_993FAA3E X-CRM114-Status: UNSURE ( 7.35 ) 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: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 10 Oct 2023 09:51:10 +0200 Uwe Kleine-K=F6nig wrote: > This macro has the advantage over SIMPLE_DEV_PM_OPS that we don't have to > care about when the functions are actually used, so the corresponding > __maybe_unused can be dropped. > = > Also make use of pm_ptr() to discard all PM related stuff if CONFIG_PM > isn't enabled. > = > Signed-off-by: Uwe Kleine-K=F6nig Reviewed-by: Jonathan Cameron _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel