linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: Convert some drivers from deprecated UNIVERSAL_DEV_PM_OPS()
@ 2022-08-07 19:04 Jonathan Cameron
  2022-08-07 19:04 ` [PATCH 1/2] iio: pressure: icp10100: Switch from UNIVERSAL to DEFINE_RUNTIME_DEV_PM_OPS() Jonathan Cameron
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jonathan Cameron @ 2022-08-07 19:04 UTC (permalink / raw)
  To: linux-iio
  Cc: Paul Cercueil, Jean-Baptiste Maneyrol, Crt Mori, Jonathan Cameron

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

During discussions of the new PM macro definitions, it because clear that
UNIVERSAL_DEV_PM_OPS() generally doesn't make much sense as it can lead
to unnecessary work.

For the drivers in this set I've taken a look at how the ops are used
and believe we can just switch to DEFINE_RUNTIME_PM_OPS() which will only
do the suspend if the device is not already runtime suspended.

I'd like some review of these (more than for the straight forward NOP conversions).

Thanks,

Jonathan


Jonathan Cameron (2):
  iio: pressure: icp10100: Switch from UNIVERSAL to
    DEFINE_RUNTIME_DEV_PM_OPS().
  iio: temp: mlx90632: Switch form UNVIVERSAL to
    DEFINE_RUNTIME_DEV_PM_OPS()

 drivers/iio/pressure/icp10100.c    | 10 +++++-----
 drivers/iio/temperature/mlx90632.c | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

-- 
2.37.1


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

end of thread, other threads:[~2022-09-04 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-07 19:04 [PATCH 0/2] iio: Convert some drivers from deprecated UNIVERSAL_DEV_PM_OPS() Jonathan Cameron
2022-08-07 19:04 ` [PATCH 1/2] iio: pressure: icp10100: Switch from UNIVERSAL to DEFINE_RUNTIME_DEV_PM_OPS() Jonathan Cameron
2022-08-16 13:13   ` Jean-Baptiste Maneyrol
2022-09-04 16:43     ` Jonathan Cameron
2022-08-07 19:04 ` [PATCH 2/2] iio: temp: mlx90632: Switch form UNVIVERSAL " Jonathan Cameron
2022-08-08 11:26   ` Crt Mori
2022-08-11 14:18     ` Jonathan Cameron
2022-09-04 16:42       ` Jonathan Cameron
2022-08-08  9:30 ` [PATCH 0/2] iio: Convert some drivers from deprecated UNIVERSAL_DEV_PM_OPS() Andy Shevchenko

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).