mbox series

[v2,0/5] IIO: Use EXPORT_NS_GPL_DEV_PM_OPS()

Message ID 20220925155719.3316280-1-jic23@kernel.org (mailing list archive)
Headers show
Series IIO: Use EXPORT_NS_GPL_DEV_PM_OPS() | expand

Message

Jonathan Cameron Sept. 25, 2022, 3:57 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

I've included Paul Cercueil's patch from
https://lore.kernel.org/all/20220813154902.32f86ee2@jic23-huawei/
but my assumption is that will go via a different tree.
It's just included here to provide everything needed to build these
against current IIO tree / linux-next

V2: Switch to Paul's more flexible implementation.
I've dropped all tags given as the form of the patches is somewhat different
from in v1.

The aim is the same as v1 - moving the remaining IIO drivers over
to the new PM macros that remove the need to mess around with
__maybe_unused or ifdef magic.  They do this by ensuring the compiler can
see all the code, and then drop it as unused if that is relevant.

Jonathan Cameron (4):
  iio: accel: fxls8962af: Use new EXPORT_NS_GPL_DEV_PM_OPS()
  iio: gyro: fxas210002c: Move exports to IIO_FXAS210002C namespace.
  iio: imu: inv_icm42600: Move exports to IIO_ICM42600 namespace
  iio: imu: inv_mpu: Move exports to IIO_MPU6050 namespace

Paul Cercueil (1):
  pm: Improve EXPORT_*_DEV_PM_OPS macros

 drivers/iio/accel/fxls8962af-core.c           | 16 ++++----
 drivers/iio/accel/fxls8962af-i2c.c            |  2 +-
 drivers/iio/accel/fxls8962af-spi.c            |  2 +-
 drivers/iio/gyro/fxas21002c_core.c            | 21 +++++------
 drivers/iio/gyro/fxas21002c_i2c.c             |  3 +-
 drivers/iio/gyro/fxas21002c_spi.c             |  3 +-
 .../iio/imu/inv_icm42600/inv_icm42600_core.c  | 21 +++++------
 .../iio/imu/inv_icm42600/inv_icm42600_i2c.c   |  3 +-
 .../iio/imu/inv_icm42600/inv_icm42600_spi.c   |  3 +-
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c    | 17 ++++-----
 drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c     |  3 +-
 drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c     |  3 +-
 include/linux/pm.h                            | 37 ++++++++++++-------
 include/linux/pm_runtime.h                    | 20 ++++++----
 14 files changed, 84 insertions(+), 70 deletions(-)

Comments

Jonathan Cameron Oct. 15, 2022, 4:47 p.m. UTC | #1
On Sun, 25 Sep 2022 16:57:14 +0100
Jonathan Cameron <jic23@kernel.org> wrote:

> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> I've included Paul Cercueil's patch from
> https://lore.kernel.org/all/20220813154902.32f86ee2@jic23-huawei/
> but my assumption is that will go via a different tree.
> It's just included here to provide everything needed to build these
> against current IIO tree / linux-next
> 
> V2: Switch to Paul's more flexible implementation.
> I've dropped all tags given as the form of the patches is somewhat different
> from in v1.
> 
> The aim is the same as v1 - moving the remaining IIO drivers over
> to the new PM macros that remove the need to mess around with
> __maybe_unused or ifdef magic.  They do this by ensuring the compiler can
> see all the code, and then drop it as unused if that is relevant.

Patch 1 is now upstream so 2-5 applied to the togreg branch of iio.git and
pushed out as testing until I can rebase that tree on rc1.

Thanks,

Jonathan

> 
> Jonathan Cameron (4):
>   iio: accel: fxls8962af: Use new EXPORT_NS_GPL_DEV_PM_OPS()
>   iio: gyro: fxas210002c: Move exports to IIO_FXAS210002C namespace.
>   iio: imu: inv_icm42600: Move exports to IIO_ICM42600 namespace
>   iio: imu: inv_mpu: Move exports to IIO_MPU6050 namespace
> 
> Paul Cercueil (1):
>   pm: Improve EXPORT_*_DEV_PM_OPS macros
> 
>  drivers/iio/accel/fxls8962af-core.c           | 16 ++++----
>  drivers/iio/accel/fxls8962af-i2c.c            |  2 +-
>  drivers/iio/accel/fxls8962af-spi.c            |  2 +-
>  drivers/iio/gyro/fxas21002c_core.c            | 21 +++++------
>  drivers/iio/gyro/fxas21002c_i2c.c             |  3 +-
>  drivers/iio/gyro/fxas21002c_spi.c             |  3 +-
>  .../iio/imu/inv_icm42600/inv_icm42600_core.c  | 21 +++++------
>  .../iio/imu/inv_icm42600/inv_icm42600_i2c.c   |  3 +-
>  .../iio/imu/inv_icm42600/inv_icm42600_spi.c   |  3 +-
>  drivers/iio/imu/inv_mpu6050/inv_mpu_core.c    | 17 ++++-----
>  drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c     |  3 +-
>  drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c     |  3 +-
>  include/linux/pm.h                            | 37 ++++++++++++-------
>  include/linux/pm_runtime.h                    | 20 ++++++----
>  14 files changed, 84 insertions(+), 70 deletions(-)
>