iio: gyro: fxas210002c: Move exports to IIO_FXAS210002C namespace.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Sep 2022 15:57:17 +0000 (16:57 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:44:00 +0000 (19:44 +0000)
commit02e082c433c65f06f4cb359688993377c1d7b6d1
tree136a8476f96e6705b9c7c192f0b4f1949d0a063c
parent687c8848c642c093c190bb182e4a6ac2ed86b4eb
iio: gyro: fxas210002c: Move exports to IIO_FXAS210002C namespace.

Includes using EXPORT_NS_GPL_DEV_PM_OPS() and the simplifications that
brings by allowing the compiler to remove unused struct dev_pm_ops
and callbacks without needing explicit __maybe_unused markings.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
--
Dropped Rui's tag on basis this is rather different from v1 due to
the different macro implementation.

v2: Switch to Paul's more flexible approach to EXPORT_NS_GPL_DEV_PM_OPS()
Acked-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://lore.kernel.org/r/20220925155719.3316280-4-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/fxas21002c_core.c
drivers/iio/gyro/fxas21002c_i2c.c
drivers/iio/gyro/fxas21002c_spi.c