summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/hmc5843_core.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-21 21:27:19 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-07-18 18:48:19 +0100
commite5933cf48779064c417fa3a2f75bbef51ea4b137 (patch)
tree420001fb6b0cb45cf0c537d944c3f3116af18089 /drivers/iio/magnetometer/hmc5843_core.c
parent74f4595ab7f8ff18919c25290e98108671887095 (diff)
downloadlinux-e5933cf48779064c417fa3a2f75bbef51ea4b137.tar.bz2
iio: magn: yas530: 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: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20220621202719.13644-37-jic23@kernel.org
Diffstat (limited to 'drivers/iio/magnetometer/hmc5843_core.c')
0 files changed, 0 insertions, 0 deletions