summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/fxls8962af-i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-09-25 18:57:16 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-23 22:44:00 +0300
commit687c8848c642c093c190bb182e4a6ac2ed86b4eb (patch)
treee7858385c1ebc3ed1756e4df19cf0f96277abe8d /drivers/iio/accel/fxls8962af-i2c.c
parent0c3a333524a3e5ba4b6c7b2638faef8420cfdb2a (diff)
downloadlinux-687c8848c642c093c190bb182e4a6ac2ed86b4eb.tar.xz
iio: accel: fxls8962af: Use new EXPORT_NS_GPL_DEV_PM_OPS()
Using this macro allows the compiler to remove unused structures and callbacks if we are not building with CONFIG_PM* without needing __maybe_unused markings. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Sean Nyekjaer <sean@geanix.com> -- Switched to Paul Cercueil's more flexible implementation fo the macro. Dropped Sean's Ack given new form of macro being used. Acked-by: Sean Nyekjaer <sean@geanix.com> Link: https://lore.kernel.org/r/20220925155719.3316280-3-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/fxls8962af-i2c.c')
-rw-r--r--drivers/iio/accel/fxls8962af-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c
index 8fbadfea1620..22640eaebac7 100644
--- a/drivers/iio/accel/fxls8962af-i2c.c
+++ b/drivers/iio/accel/fxls8962af-i2c.c
@@ -45,7 +45,7 @@ static struct i2c_driver fxls8962af_driver = {
.driver = {
.name = "fxls8962af_i2c",
.of_match_table = fxls8962af_of_match,
- .pm = &fxls8962af_pm_ops,
+ .pm = pm_ptr(&fxls8962af_pm_ops),
},
.probe_new = fxls8962af_probe,
.id_table = fxls8962af_id,