summaryrefslogtreecommitdiff
path: root/drivers/iio/light/vcnl4035.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-21 21:27:15 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-07-18 18:48:19 +0100
commitcd4d10b134c2194c50dc7f58c1f9c502f7f76656 (patch)
tree4678c2fc069e310c98d585c56f88383221c33a32 /drivers/iio/light/vcnl4035.c
parent5672f3982ac98c8a8b8f1c5d4e2b3cd03342ea9d (diff)
iio: light: vcnl4000: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() macros
Using these new macros allows the compiler to remove the unused dev_pm_ops structure and related functions if !CONFIG_PM without the need to mark the functions __maybe_unused. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Mathieu Othacehe <m.othacehe@gmail.com> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20220621202719.13644-33-jic23@kernel.org
Diffstat (limited to 'drivers/iio/light/vcnl4035.c')
0 files changed, 0 insertions, 0 deletions