linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bough Chen <haibo.chen@nxp.com>
To: Jonathan Cameron <jic23@kernel.org>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	Paul Cercueil <paul@crapouillou.net>
Cc: "Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Brian Masney" <masneyb@onstation.org>,
	"David Heidelberg" <david@ixit.cz>,
	"Cai Huoqing" <cai.huoqing@linux.dev>,
	"Christian Eggers" <ceggers@arri.de>,
	"Enric Balletbo i Serra" <enric.balletbo@collabora.com>,
	"Eugen Hristev" <eugen.hristev@microchip.com>,
	"Gwendal Grignou" <gwendal@chromium.org>,
	"Hui Liu" <hui.liu@mediatek.com>,
	"Joe Sandom" <joe.g.sandom@gmail.com>,
	"Ismail H . Kose" <ihkose@gmail.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Ludovic Desroches" <ludovic.desroches@microchip.com>,
	"Nicolas Ferre" <nicolas.ferre@microchip.com>,
	"Marcus Folkesson" <marcus.folkesson@gmail.com>,
	"Martin Blumenstingl" <martin.blumenstingl@googlemail.com>,
	"Mathieu Othacehe" <m.othacehe@gmail.com>,
	"Michal Simek" <michal.simek@xilinx.com>,
	"Miquel Raynal" <miquel.raynal@bootlin.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Parthiban Nallathambi" <pn@denx.de>,
	"Philippe Reynes" <tremyfr@yahoo.fr>,
	"Philippe Schenker" <philippe.schenker@toradex.com>,
	"Rishi Gupta" <gupt21@gmail.com>,
	"Roan van Dijk" <roan@protonic.nl>,
	"Stephen Boyd" <swboyd@chromium.org>,
	"Tomasz Duszynski" <tduszyns@gmail.com>,
	"Zhiyong Tao" <zhiyong.tao@mediatek.com>,
	"Jonathan Cameron" <Jonathan.Cameron@huawei.com>
Subject: RE: [PATCH 04/36] iio: adc: imx7d_adc: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
Date: Wed, 22 Jun 2022 09:31:07 +0000	[thread overview]
Message-ID: <AM0PR04MB4001536EBB010D6D2DDD39B190B29@AM0PR04MB4001.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20220621202719.13644-5-jic23@kernel.org>

> -----Original Message-----
> From: Jonathan Cameron <jic23@kernel.org>
> Sent: 2022年6月22日 4:27
> To: linux-iio@vger.kernel.org; Paul Cercueil <paul@crapouillou.net>
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>; Brian Masney
> <masneyb@onstation.org>; David Heidelberg <david@ixit.cz>; Cai Huoqing
> <cai.huoqing@linux.dev>; Christian Eggers <ceggers@arri.de>; Enric Balletbo i
> Serra <enric.balletbo@collabora.com>; Eugen Hristev
> <eugen.hristev@microchip.com>; Gwendal Grignou <gwendal@chromium.org>;
> Bough Chen <haibo.chen@nxp.com>; Hui Liu <hui.liu@mediatek.com>; Joe
> Sandom <joe.g.sandom@gmail.com>; Ismail H . Kose <ihkose@gmail.com>;
> Lars-Peter Clausen <lars@metafoo.de>; Linus Walleij <linus.walleij@linaro.org>;
> Ludovic Desroches <ludovic.desroches@microchip.com>; Nicolas Ferre
> <nicolas.ferre@microchip.com>; Marcus Folkesson
> <marcus.folkesson@gmail.com>; Martin Blumenstingl
> <martin.blumenstingl@googlemail.com>; Mathieu Othacehe
> <m.othacehe@gmail.com>; Michal Simek <michal.simek@xilinx.com>; Miquel
> Raynal <miquel.raynal@bootlin.com>; Nuno Sá <nuno.sa@analog.com>;
> Parthiban Nallathambi <pn@denx.de>; Philippe Reynes <tremyfr@yahoo.fr>;
> Philippe Schenker <philippe.schenker@toradex.com>; Rishi Gupta
> <gupt21@gmail.com>; Roan van Dijk <roan@protonic.nl>; Stephen Boyd
> <swboyd@chromium.org>; Tomasz Duszynski <tduszyns@gmail.com>; Zhiyong
> Tao <zhiyong.tao@mediatek.com>; Jonathan Cameron
> <Jonathan.Cameron@huawei.com>
> Subject: [PATCH 04/36] iio: adc: imx7d_adc: Switch to
> DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
> 
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> In this case we only gain the ability to have the compiler drop the struct
> dev_pm_ops because the callbacks are called from paths other than suspend
> and resume.  In general the purpose of this new macro is to allow automated
> removal of the callbacks as well, but that doesn't apply here.
> 
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Cc: Haibo Chen <haibo.chen@nxp.com>

Reviewed-by: Haibo Chen <haibo.chen@nxp.com>

> ---
>  drivers/iio/adc/imx7d_adc.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/adc/imx7d_adc.c b/drivers/iio/adc/imx7d_adc.c index
> 119217af2bde..86caff1d006b 100644
> --- a/drivers/iio/adc/imx7d_adc.c
> +++ b/drivers/iio/adc/imx7d_adc.c
> @@ -540,14 +540,15 @@ static int imx7d_adc_probe(struct platform_device
> *pdev)
>  	return 0;
>  }
> 
> -static SIMPLE_DEV_PM_OPS(imx7d_adc_pm_ops, imx7d_adc_disable,
> imx7d_adc_enable);
> +static DEFINE_SIMPLE_DEV_PM_OPS(imx7d_adc_pm_ops,
> imx7d_adc_disable,
> +				imx7d_adc_enable);
> 
>  static struct platform_driver imx7d_adc_driver = {
>  	.probe		= imx7d_adc_probe,
>  	.driver		= {
>  		.name	= "imx7d_adc",
>  		.of_match_table = imx7d_adc_match,
> -		.pm	= &imx7d_adc_pm_ops,
> +		.pm	= pm_sleep_ptr(&imx7d_adc_pm_ops),
>  	},
>  };
> 
> --
> 2.36.1


  reply	other threads:[~2022-06-22  9:31 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21 20:26 [PATCH 00/36] IIO: switch easy cases to new simpler PM related macros Jonathan Cameron
2022-06-21 20:26 ` [PATCH 01/36] iio: accel: bma220: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() Jonathan Cameron
2022-06-21 20:26 ` [PATCH 02/36] iio: adc: ad799x: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 03/36] iio: adc: at91-sam5d2: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 04/36] iio: adc: imx7d_adc: " Jonathan Cameron
2022-06-22  9:31   ` Bough Chen [this message]
2022-06-21 20:26 ` [PATCH 05/36] iio: adc: meson_saradc: " Jonathan Cameron
2022-06-26 22:04   ` Martin Blumenstingl
2022-06-21 20:26 ` [PATCH 06/36] iio: adc: mt6577_auxadc: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 07/36] iio: adc: stmpe-adc: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 08/36] iio: adc: ti-am335x: " Jonathan Cameron
2022-06-22  6:29   ` Miquel Raynal
2022-06-21 20:26 ` [PATCH 09/36] iio: adc: xilinx-ams: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 10/36] iio: chemical: scd4x: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 11/36] iio: dac: ds4424: " Jonathan Cameron
     [not found]   ` <CABEhyf8EezacO8hSCDtz8kDnWeTWFJYBz0XJufjmyprv5u3rmw@mail.gmail.com>
2022-06-25 13:08     ` Jonathan Cameron
2022-06-21 20:26 ` [PATCH 12/36] iio: dac: ltc1660: " Jonathan Cameron
2022-06-22  6:25   ` Marcus Folkesson
2022-06-21 20:26 ` [PATCH 13/36] iio: dac: max517: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 14/36] iio: dac: max5821: " Jonathan Cameron
     [not found]   ` <CABEhyf-N-hi7z3SQK4FRWyztwJ=3t17NZT-gGCEugQhUkpcZQA@mail.gmail.com>
2022-06-25 13:07     ` Jonathan Cameron
2022-06-21 20:26 ` [PATCH 15/36] iio: dac: mcp4725: " Jonathan Cameron
2022-06-21 20:26 ` [PATCH 16/36] iio: gyro: itg3200: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 17/36] iio: health: afe4403: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 18/36] iio: health: afe4404: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 19/36] iio: light: al3010: " Jonathan Cameron
2022-06-22  9:36   ` David Heidelberg
2022-06-21 20:27 ` [PATCH 20/36] iio: light: al3320a: " Jonathan Cameron
2022-06-25 13:06   ` Jonathan Cameron
2022-06-21 20:27 ` [PATCH 21/36] iio: light: as73211: " Jonathan Cameron
2022-06-23  8:46   ` Christian Eggers
2022-06-21 20:27 ` [PATCH 22/36] iio: light: bh1750: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 23/36] iio: light: cm3605: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 24/36] iio: proximity: cros_ec_mkbp: " Jonathan Cameron
2022-06-21 21:06   ` Gwendal Grignou
2022-06-21 20:27 ` [PATCH 25/36] iio: temperature: ltc2983: " Jonathan Cameron
2022-06-23  6:14   ` Sa, Nuno
2022-06-21 20:27 ` [PATCH 26/36] iio: light: us5182: Switch from CONFIG_PM guards to pm_ptr() etc Jonathan Cameron
2022-06-21 20:27 ` [PATCH 27/36] iio: adc: imx8qxp: Switch to DEFINE_RUNTIME_DEV_PM_OPS and pm_ptr() Jonathan Cameron
2022-06-22  9:32   ` Bough Chen
2022-06-21 20:27 ` [PATCH 28/36] iio: light: gp2ap002: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 29/36] iio: light: isl29028: Use DEFINE_RUNTIME_DEV_PM_OPS() " Jonathan Cameron
2022-06-22 11:09   ` Brian Masney
2022-06-21 20:27 ` [PATCH 30/36] iio: light: tsl2583: Use DEFINE_RUNTIME_DEV_PM_OPS " Jonathan Cameron
2022-06-22 11:10   ` Brian Masney
2022-06-21 20:27 ` [PATCH 31/36] iio: light: tsl2591: Use DEFINE_RUNTIME_DEV_PM_OPS() " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 32/36] iio: light: vcnl4000: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() macros Jonathan Cameron
2022-06-21 20:27 ` [PATCH 33/36] iio: light: vcnl4035: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 34/36] iio: light: veml6030: " Jonathan Cameron
2022-06-26 18:00   ` Rishi Gupta
2022-06-21 20:27 ` [PATCH 35/36] iio: magnetometer: ak8974: " Jonathan Cameron
2022-06-21 20:27 ` [PATCH 36/36] iio: magn: yas530: " Jonathan Cameron
2022-06-27 23:13 ` [PATCH 00/36] IIO: switch easy cases to new simpler PM related macros Paul Cercueil
2022-07-18 17:49   ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR04MB4001536EBB010D6D2DDD39B190B29@AM0PR04MB4001.eurprd04.prod.outlook.com \
    --to=haibo.chen@nxp.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=cai.huoqing@linux.dev \
    --cc=ceggers@arri.de \
    --cc=david@ixit.cz \
    --cc=enric.balletbo@collabora.com \
    --cc=eugen.hristev@microchip.com \
    --cc=gupt21@gmail.com \
    --cc=gwendal@chromium.org \
    --cc=hui.liu@mediatek.com \
    --cc=ihkose@gmail.com \
    --cc=jic23@kernel.org \
    --cc=joe.g.sandom@gmail.com \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=ludovic.desroches@microchip.com \
    --cc=m.othacehe@gmail.com \
    --cc=marcus.folkesson@gmail.com \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=masneyb@onstation.org \
    --cc=michal.simek@xilinx.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=nicolas.ferre@microchip.com \
    --cc=nuno.sa@analog.com \
    --cc=paul@crapouillou.net \
    --cc=philippe.schenker@toradex.com \
    --cc=pn@denx.de \
    --cc=roan@protonic.nl \
    --cc=swboyd@chromium.org \
    --cc=tduszyns@gmail.com \
    --cc=tremyfr@yahoo.fr \
    --cc=zhiyong.tao@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).