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 F1423CD6E5A for ; Wed, 11 Oct 2023 11:23:44 +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=2gKz6dcLmuw6eOG0sMQK2NvIT00iOvAEZu5XEdblMns=; b=BxfVF0BgFtgKZf qiDwqkY63tRW1RHFTpcqTCkwfuW+H9IjcnvtcnxDvy9HN0b4Teow8cD+Zvpgo2mWzAe9cmkFLnc4+ LfzOrY0xjZwyFei0N2Odr2T1NOOxpxd4xF1lvfeHxeLnB/DTurBPTXaad1mckR/r/iqRAGP/6sB5+ P3TR/SjUGIcCfK/lJrfPGikJHk2y5vkV8dQLNFYhzgh6rTmr4uJnkg8BqDxPPlj89kIiCJdyJPg6I UX3XuXI3FkGTMMALIbhhc3DrbMboaFDEE6wJ5dCa8vDJyRkoggGb698lfI2Srw1xH/JRyZO1qxExp 0wf5Iy+ehyMFstE7PtcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqXJD-00FkTx-2Y; Wed, 11 Oct 2023 11:23:23 +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 1qqXJB-00FkSN-22 for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 11:23:23 +0000 Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4S59Nz0gbbz6K7LS; Wed, 11 Oct 2023 19:22:59 +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:19 +0100 Date: Wed, 11 Oct 2023 12:23:18 +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 08/11] pwm: stm32-lp: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions Message-ID: <20231011122318.000014bb@Huawei.com> In-Reply-To: <20231010075112.755178-9-u.kleine-koenig@pengutronix.de> References: <20231010075112.755178-1-u.kleine-koenig@pengutronix.de> <20231010075112.755178-9-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_042321_810026_D21E8E3D 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:09 +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