diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-04-01 15:06:03 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-04-05 20:16:34 +0200 |
commit | 95d5a7214b86e64dc97db3d35f6d97533f89fb32 (patch) | |
tree | 7fb781a4109bb9a632265f901f26562de1defead /drivers/iio/chemical/scd30_serial.c | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | lwn-95d5a7214b86e64dc97db3d35f6d97533f89fb32.tar.gz lwn-95d5a7214b86e64dc97db3d35f6d97533f89fb32.zip |
iio: chemical: scd30: Export dev_pm_ops instead of suspend() and resume()
Whilst here move to the new infrastructure using pm_sleep_ptr()
and EXPORT_DEV_PM_OPS() so as to let the compiler remove the unused
code if CONFIG_SLEEP is not defined.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/iio/chemical/scd30_serial.c')
-rw-r--r-- | drivers/iio/chemical/scd30_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/scd30_serial.c b/drivers/iio/chemical/scd30_serial.c index 568b34486c44..8664f3ce6b33 100644 --- a/drivers/iio/chemical/scd30_serial.c +++ b/drivers/iio/chemical/scd30_serial.c @@ -252,7 +252,7 @@ static struct serdev_device_driver scd30_serdev_driver = { .driver = { .name = KBUILD_MODNAME, .of_match_table = scd30_serdev_of_match, - .pm = &scd30_pm_ops, + .pm = pm_sleep_ptr(&scd30_pm_ops), }, .probe = scd30_serdev_probe, }; |