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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89696C32771 for ; Sun, 18 Sep 2022 17:36:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbiIRRgi (ORCPT ); Sun, 18 Sep 2022 13:36:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiIRRgh (ORCPT ); Sun, 18 Sep 2022 13:36:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47C8D1583A for ; Sun, 18 Sep 2022 10:36:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D27C761616 for ; Sun, 18 Sep 2022 17:36:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0118FC433D6; Sun, 18 Sep 2022 17:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663522596; bh=zXuobNiI3oDzYHAWL+Uc/9rjiuIQ+j8rQOCABQ+Qp10=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B2JvN1o9+nM9d0fYYB5yOTQeO7KAS7E2H0ajmbWRTydodyQBgmnXV7b7WT5sSLwdC T1XjWRCxBMrEAtrTbiUJ7KzFjT+2LAs2dNqiheOyfumfbZzT6jiGKC1SCeA+R+R0T3 2kYnqPmiy+XkwAcw4KJE71GjqpowN0cr8fqobv6ONxN1TCe8qKVqiISsLSylR7DU+t huPfv3LgEJkR5q4lg6cyFWaveeq3mn9PHpD2B2kXCZkDYwFww2qAPZCHjjZehnfNFw wYsbQRVm/QN10Y27qq5Z2lMs8L1QgcwtKVDSlKHOlLjFgKj0S8o2ibgxrDtu8juGBT Msyp8x0aiL+gw== Date: Sun, 18 Sep 2022 18:36:39 +0100 From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Paul Cercueil , Gwendal Grignou , Andreas Klinger , LI Qingwu , Mike Looijmans , Lorenzo Bianconi , Jonathan Cameron Subject: Re: [PATCH 2/6] iio: proximity: sx9324: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() Message-ID: <20220918183639.712834ee@jic23-huawei> In-Reply-To: <20220807185618.1038812-3-jic23@kernel.org> References: <20220807185618.1038812-1-jic23@kernel.org> <20220807185618.1038812-3-jic23@kernel.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Sun, 7 Aug 2022 19:56:14 +0100 Jonathan Cameron wrote: > From: Jonathan Cameron > > These new macros avoid the need for marking the callbacks __maybe_unused > whilst ensuring both callbacks and structure may be dropped by the compiler > if CONFIG_PM_SLEEP is not enabled. > > Signed-off-by: Jonathan Cameron > Cc: Gwendal Grignou Applied