All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/36] IIO: switch easy cases to new simpler PM related macros.
@ 2022-06-21 20:26 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
                   ` (36 more replies)
  0 siblings, 37 replies; 54+ messages in thread
From: Jonathan Cameron @ 2022-06-21 20:26 UTC (permalink / raw)
  To: linux-iio, Paul Cercueil
  Cc: Alexandre Belloni, Brian Masney, David Heidelberg, Cai Huoqing,
	Christian Eggers, Enric Balletbo i Serra, Eugen Hristev,
	Gwendal Grignou, Haibo Chen, Hui Liu, Joe Sandom,
	Ismail H . Kose, Lars-Peter Clausen, Linus Walleij,
	Ludovic Desroches, Nicolas Ferre, Marcus Folkesson,
	Martin Blumenstingl, Mathieu Othacehe, Michal Simek,
	Miquel Raynal, Nuno Sá,
	Parthiban Nallathambi, Philippe Reynes, Philippe Schenker,
	Rishi Gupta, Roan van Dijk, Stephen Boyd, Tomasz Duszynski,
	Zhiyong Tao, Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

After Paul's work [1] to cleanup us the PM related macros allow
use of pm_ptr() and pm_sleep_ptr() making the compiler figure
out what structures and functions can be dropped without __maybe_unused
mess, I've been working through converting IIO.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/pm.h?id=c06ef740d401d0f4ab188882bf6f8d9cf0f75eaf

This particular set is the low hanging fruit. The majority of
the remainder in IIO require more thought because:

1) They only have runtime pm callbacks, but no sleep ones. Need to check
   there is no reason we can't use use the force_runtime_suspend approach.
2) Odd cases like using same functions for sleep and runtime pm but not
   via force runtime suspend.
3) Other weird corner cases where I want to take a closer look before
   sending them out (I think some of them are buggy).

Anyhow, whilst I've CC'd a lot of people I suspect some will no longer
be active on these addresses - hence if anyone has time to look at a few
patches rather than just the ones for drivers they maintain that would
be much appreciated. In some cases I haven't CC'd anyone on a particular
patch because I'm fairly sure the author is not longer at the same
address. Any review of those ones in particular would be great.

Thanks,

Jonathan

Jonathan Cameron (36):
  iio: accel: bma220: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: ad799x: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: at91-sam5d2:  Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: imx7d_adc: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: meson_saradc: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: mt6577_auxadc: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: stmpe-adc: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: ti-am335x: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: adc: xilinx-ams: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: chemical: scd4x: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: dac: ds4424: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: dac: ltc1660: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: dac: max517: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: dac: max5821: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: dac: mcp4725: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: gyro: itg3200: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: health: afe4403: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: health: afe4404: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: light: al3010: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: light: al3320a: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: light: as73211: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: light: bh1750: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: light: cm3605: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: proximity: cros_ec_mkbp: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: temperature: ltc2983: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
    pm_sleep_ptr()
  iio: light: us5182: Switch from CONFIG_PM guards to pm_ptr() etc
  iio: adc: imx8qxp: Switch to DEFINE_RUNTIME_DEV_PM_OPS and pm_ptr()
  iio: light: gp2ap002: Switch to DEFINE_RUNTIME_DEV_PM_OPS and pm_ptr()
  iio: light: isl29028: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr()
  iio: light: tsl2583: Use DEFINE_RUNTIME_DEV_PM_OPS and pm_ptr()
  iio: light: tsl2591: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr()
  iio: light: vcnl4000: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr()
    macros
  iio: light: vcnl4035: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr()
    macros
  iio: light: veml6030: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr()
    macros
  iio: magnetometer: ak8974: Use DEFINE_RUNTIME_DEV_PM_OPS() and
    pm_ptr() macros
  iio: magn: yas530: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() macros

 drivers/iio/accel/bma220_spi.c                 |  8 ++++----
 drivers/iio/adc/ad799x.c                       |  8 ++++----
 drivers/iio/adc/at91-sama5d2_adc.c             |  9 +++++----
 drivers/iio/adc/imx7d_adc.c                    |  5 +++--
 drivers/iio/adc/imx8qxp-adc.c                  | 13 ++++++-------
 drivers/iio/adc/meson_saradc.c                 | 10 +++++-----
 drivers/iio/adc/mt6577_auxadc.c                | 12 ++++++------
 drivers/iio/adc/stmpe-adc.c                    |  6 +++---
 drivers/iio/adc/ti_am335x_adc.c                |  8 ++++----
 drivers/iio/adc/xilinx-ams.c                   |  8 ++++----
 drivers/iio/chemical/scd4x.c                   |  8 ++++----
 drivers/iio/dac/ds4424.c                       |  8 ++++----
 drivers/iio/dac/ltc1660.c                      |  9 +++++----
 drivers/iio/dac/max517.c                       |  8 ++++----
 drivers/iio/dac/max5821.c                      |  9 +++++----
 drivers/iio/dac/mcp4725.c                      |  9 +++++----
 drivers/iio/gyro/itg3200_core.c                |  9 +++++----
 drivers/iio/health/afe4403.c                   |  9 +++++----
 drivers/iio/health/afe4404.c                   |  9 +++++----
 drivers/iio/light/al3010.c                     |  8 ++++----
 drivers/iio/light/al3320a.c                    |  9 +++++----
 drivers/iio/light/as73211.c                    |  9 +++++----
 drivers/iio/light/bh1750.c                     |  6 +++---
 drivers/iio/light/cm3605.c                     | 13 +++++--------
 drivers/iio/light/gp2ap002.c                   | 14 +++++---------
 drivers/iio/light/isl29028.c                   | 13 +++++--------
 drivers/iio/light/tsl2583.c                    | 13 +++++--------
 drivers/iio/light/tsl2591.c                    | 12 +++++-------
 drivers/iio/light/us5182d.c                    |  8 +++-----
 drivers/iio/light/vcnl4000.c                   | 14 +++++---------
 drivers/iio/light/vcnl4035.c                   | 14 +++++---------
 drivers/iio/light/veml6030.c                   | 14 +++++---------
 drivers/iio/magnetometer/ak8974.c              | 14 +++++---------
 drivers/iio/magnetometer/yamaha-yas530.c       | 14 +++++---------
 drivers/iio/proximity/cros_ec_mkbp_proximity.c |  8 ++++----
 drivers/iio/temperature/ltc2983.c              |  9 +++++----
 36 files changed, 165 insertions(+), 192 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 54+ messages in thread

end of thread, other threads:[~2022-07-18 17:39 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.