diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-06-21 23:27:08 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-07-18 20:48:18 +0300 |
commit | fb4e8e2dadc91ea6478045910192e46bc880c32c (patch) | |
tree | 840193107293ba1a806f0e69f68f61b6bf3ed2d2 /drivers/iio/light | |
parent | dc69c61019dcbcc4d8e489db6420812ddc0ceb35 (diff) | |
download | linux-fb4e8e2dadc91ea6478045910192e46bc880c32c.tar.xz |
iio: temperature: ltc2983: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
Using these newer macros allows the compiler to remove the unused
structure and functions when !CONFIG_PM_SLEEP + removes the need to
mark pm functions __maybe_unused.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20220621202719.13644-26-jic23@kernel.org
Diffstat (limited to 'drivers/iio/light')
0 files changed, 0 insertions, 0 deletions