iio: chemical: scd30: Export dev_pm_ops instead of suspend() and resume()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 1 Apr 2022 14:06:03 +0000 (15:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Apr 2022 18:16:34 +0000 (20:16 +0200)
commit95d5a7214b86e64dc97db3d35f6d97533f89fb32
tree7fb781a4109bb9a632265f901f26562de1defead
parent3123109284176b1532874591f7c81f3837bbdc17
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>
drivers/iio/chemical/scd30.h
drivers/iio/chemical/scd30_core.c
drivers/iio/chemical/scd30_i2c.c
drivers/iio/chemical/scd30_serial.c