linux/drivers/iio/trigger
Jonathan Cameron ade59a7af2 iio:adc:stm32*: Use pm[_sleep]_ptr() etc to avoid need to make pm __maybe_unused
The combinations of either
* pm_sleep_ptr() and DEFINE_SIMPLE_DEV_PM_OPS()
* pm_ptr() and RUNTIME_PM_OPS()/SYSTEM_SLEEP_PM_OPS
Make sure the functions are always visible to the compiler and removed by
it rather than requring #ifdef magic.

This removes the need to mark the functions as __maybe_unused and saves
additional space with some build options as the dev_pm_ops structure
itself can be dropped automatically if CONFIG_PM is not enabled.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Olivier Moysan <olivier.moysan@st.com>
Cc: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20220130193147.279148-51-jic23@kernel.org
2022-02-21 19:33:04 +00:00
..
iio-trig-hrtimer.c iio: hrtimer-trigger: Fix potential integer overflow in iio_hrtimer_store_sampling_frequency 2021-04-07 08:36:39 +01:00
iio-trig-interrupt.c iio: interrupt-trigger: Remove no-op trigger ops 2021-11-17 17:51:35 +00:00
iio-trig-loop.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-sysfs.c iio: sysfs-trigger: Remove no-op trigger ops 2021-11-17 17:51:36 +00:00
Kconfig iio: trigger: stm32-timer: Make use of device properties 2022-02-18 11:35:49 +00:00
Makefile
stm32-lptimer-trigger.c iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-timer-trigger.c iio:adc:stm32*: Use pm[_sleep]_ptr() etc to avoid need to make pm __maybe_unused 2022-02-21 19:33:04 +00:00