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>
This commit is contained in:
Jonathan Cameron 2022-04-01 15:06:03 +01:00 • committed by Rafael J. Wysocki
commit 95d5a7214b
4 changed files with 7 additions and 10 deletions