summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/hmc5843_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-08-07 19:45:34 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-08-15 22:30:02 +0100
commit71041f73dc685ccaa7d150aa5eecc02609117739 (patch)
treefbab1d19aee4b8c0b70bd1f92c87e512c715c31e /drivers/iio/magnetometer/hmc5843_i2c.c
parentc3b4afb1825b120481798512dd6a647804c5e521 (diff)
downloadlinux-71041f73dc685ccaa7d150aa5eecc02609117739.tar.bz2
iio: magn: hmc5843: Move struct dev_pm_ops out of header
Having this structure defined static in the header lead to unnecessary duplication and required additional symbol exports. Use the EXPORT_NS_SIMPLE_DEV_PM_OPS() to clean this up in the same fashion as many other drivers do this. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220807184534.1037363-3-jic23@kernel.org
Diffstat (limited to 'drivers/iio/magnetometer/hmc5843_i2c.c')
-rw-r--r--drivers/iio/magnetometer/hmc5843_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/hmc5843_i2c.c b/drivers/iio/magnetometer/hmc5843_i2c.c
index 8d2ff8fc204d..825a881d37fb 100644
--- a/drivers/iio/magnetometer/hmc5843_i2c.c
+++ b/drivers/iio/magnetometer/hmc5843_i2c.c
@@ -93,7 +93,7 @@ MODULE_DEVICE_TABLE(of, hmc5843_of_match);
static struct i2c_driver hmc5843_driver = {
.driver = {
.name = "hmc5843",
- .pm = HMC5843_PM_OPS,
+ .pm = pm_sleep_ptr(&hmc5843_pm_ops),
.of_match_table = hmc5843_of_match,
},
.id_table = hmc5843_id,