diff options
author | 2022-06-21 21:27:09 +0100 | |
---|---|---|
committer | 2022-07-18 18:48:18 +0100 | |
commit | a79163d19ef7b385f48876898c28a58f35a1df35 (patch) | |
tree | 6542653b281f1db79bc2ca25f5294cae8ff763b6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: temperature: ltc2983: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() (diff) | |
download | linux-dev-a79163d19ef7b385f48876898c28a58f35a1df35.tar.xz linux-dev-a79163d19ef7b385f48876898c28a58f35a1df35.zip |
iio: light: us5182: Switch from CONFIG_PM guards to pm_ptr() etc
Letting the compiler remove these functions when the kernel is built
without CONFIG_PM support is simpler and less error prone than the
use of #ifdef based config guards.
Removing instances of this approach from IIO also stops them being
copied into new drivers.
Very likely it would be safe to use DEFINE_RUNTIME_DEV_PM_OPS() here,
but that would be a functional change.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20220621202719.13644-27-jic23@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions