Skip to content

iio: gyro: mpu3050: Cleanup exports and PM

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: gyro: mpu3050: Drop unused symbol exports.drivers/iio/gyro/mpu3050-core.c+0 -31 reply
2/2iio: gyro: mpu3050: Use pm_ptr() and DEFINE_RUNTIME_DEV_PM_OPS()drivers/iio/gyro/mpu3050-core.c drivers/iio/gyro/mpu3050-i2c.c+3 -101 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLinus Walleij
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] iio: gyro: mpu3050: Cleanup exports and PM

From: Jonathan Cameron <[email protected]>

Paul Cercueil happened to chose this driver as his example for EXPORT_RUNTIME_DEV_PM_OPS() in his recent patch set to cleanup how we handle dev_pm_ops.

https://lore.kernel.org/linux-pm/[email protected]/

Whilst reviewing that I noticed that there were a bunch of exports in this driver that are only used by other files compiled into the same module. Paul found another driver to demo his new infrastructure.

This series is cleaning up that oddity by first dropping the exports and then using the new pm_ptr() and DEFINE_RUNTIME_PM_DEV_OPS() to allow the compiler to be responsible for removing the unused code for us rather than requiring manual CONFIG_PM guards.

Jonathan Cameron (2):
iio: gyro: mpu3050: Drop unused symbol exports.
iio: gyro: mpu3050: Use pm_ptr() and DEFINE_RUNTIME_DEV_PM_OPS()

 drivers/iio/gyro/mpu3050-core.c | 14 ++------------
 drivers/iio/gyro/mpu3050-i2c.c  |  2 +-
 2 files changed, 3 insertions(+), 13 deletions(-)
Signature · 1 line
2.35.1