linux/drivers/iio/dac
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
..
ad3552r.c drivers:iio:dac: Add AD3552R driver support 2021-12-16 18:00:55 +00:00
ad5064.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5360.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5380.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5421.c iio: dac: ad5421: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:54 +01:00
ad5446.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5449.c iio: dac: ad5449: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:01 +01:00
ad5504.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5592r-base.c iio:dac:ad5592r: Move exports into IIO_AD5592R namespace 2022-02-18 11:42:26 +00:00
ad5592r-base.h iio: dac: ad5592r: Make ad5592r_remove() return void 2021-10-19 08:30:45 +01:00
ad5592r.c iio:dac:ad5592r: Move exports into IIO_AD5592R namespace 2022-02-18 11:42:26 +00:00
ad5593r.c iio:dac:ad5592r: Move exports into IIO_AD5592R namespace 2022-02-18 11:42:26 +00:00
ad5624r_spi.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5686-spi.c iio:dac:ad5686: Move exports into IIO_AD5686 namespace 2022-02-18 11:42:26 +00:00
ad5686.c iio:dac:ad5686: Move exports into IIO_AD5686 namespace 2022-02-18 11:42:26 +00:00
ad5686.h iio: dac: ad5686: Make ad5686_remove() return void 2021-10-19 08:30:45 +01:00
ad5696-i2c.c iio:dac:ad5686: Move exports into IIO_AD5686 namespace 2022-02-18 11:42:26 +00:00
ad5755.c iio:dac:ad5755: Switch to generic firmware properties and drop pdata 2021-12-12 17:12:28 +00:00
ad5758.c iio:dac:ad5758: Drop unused of specific headers. 2021-12-12 17:12:34 +00:00
ad5761.c iio: dac: ad5761: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:04 +01:00
ad5764.c iio: dac: ad5764: Fix misdocumenting and formatting error 2020-07-20 09:03:06 +01:00
ad5766.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5770r.c iio: ad5770r: make devicetree property reading consistent 2021-09-14 12:00:32 +01:00
ad5791.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad7293.c iio:dac:ad7293: add support for AD7293 2021-12-04 16:22:41 +00:00
ad7303.c iio: dac: ad7303: convert probe to full device-managed 2021-10-17 11:05:53 +01:00
ad8801.c iio: dac: ad8801: Make use of the helper function dev_err_probe() 2021-10-19 08:30:43 +01:00
cio-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dpot-dac.c iio:dac:dpot-dac: Swap of.h for mod_devicetable.h 2021-12-12 17:12:39 +00:00
ds4424.c iio: dac: ds4424: Make use of the helper function dev_err_probe() 2021-10-19 08:30:43 +01:00
Kconfig drivers:iio:dac: Add AD3552R driver support 2021-12-16 18:00:55 +00:00
lpc18xx_dac.c iio:dac:lpc18xx_dac: Swap from of* to mod_devicetable.h 2021-12-12 17:12:43 +00:00
ltc1660.c iio: dac: ltc1660: Make use of the helper function dev_err_probe() 2021-10-19 08:30:43 +01:00
ltc2632.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
m62332.c iio:dac:m62332: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
Makefile drivers:iio:dac: Add AD3552R driver support 2021-12-16 18:00:55 +00:00
max517.c iio:dac:max517.c: Use devm_iio_device_register() 2021-03-25 19:13:52 +00:00
max5821.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
mcp4725.c iio:dac:mcp4725: Suppress clang W=1 warning about pointer to enum conversion. 2021-12-21 15:10:09 +00:00
mcp4922.c iio: dac: mcp4922: Make use of the helper function dev_err_probe() 2021-10-19 08:30:43 +01:00
stm32-dac-core.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
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.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
ti-dac082s085.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ti-dac5571.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ti-dac7311.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ti-dac7612.c iio: dac: ti-dac7612: Replace indio_dev->mlock with own device lock 2020-09-16 18:56:22 +01:00
vf610_dac.c iio:dac:vf610: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:45:29 +00:00