linux/drivers/i2c/busses
Paul Cercueil d19941ac22 i2c: qup: Remove #ifdef guards for PM related functions
Use the new PM macros for the suspend and resume functions to be
automatically dropped by the compiler when CONFIG_PM or
CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards.

This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.

Note that the driver should probably use the DEFINE_RUNTIME_DEV_PM_OPS()
macro, as the system suspend/resume callbacks seem to not do anything
more than triggering the runtime-PM states.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20230722115310.27681-1-paul@crapouillou.net
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
2023-08-08 15:36:50 +02:00
..
i2c-acorn.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
i2c-ali15x3.c i2c: Use separate MODULE_AUTHOR() statements for multiple authors 2020-07-04 08:25:13 +02:00
i2c-ali1535.c i2c: ali1535: mention that the device should not be disabled 2021-07-02 09:14:46 +02:00
i2c-ali1563.c i2c: busses: i2c-ali1563: File headers are not good candidates for kernel-doc 2021-05-27 21:29:26 +02:00
i2c-altera.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-amd756-s4882.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-amd756.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-amd8111.c i2c: amd8111: Fix coding style issues 2021-04-15 22:24:11 +02:00
i2c-amd-mp2-pci.c i2c: amd-mp2: use msix/msi if the hardware supports 2022-11-01 13:41:22 +01:00
i2c-amd-mp2-plat.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-amd-mp2.h i2c: amd-mp2: use msix/msi if the hardware supports 2022-11-01 13:41:22 +01:00
i2c-aspeed.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-at91-core.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-at91-master.c i2c: at91: Initialize dma_buf in at91_twi_xfer() 2022-05-14 15:41:16 +02:00
i2c-at91-slave.c i2c: at91: added slave mode support 2019-03-24 22:41:51 +01:00
i2c-at91.h i2c: at91: remove legacy DMA left overs 2020-11-03 21:34:40 +01:00
i2c-au1550.c i2c: au1550: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-axxia.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-bcm2835.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-bcm-iproc.c i2c: iproc: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-bcm-kona.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-brcmstb.c i2c: brcmstb: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-cadence.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-cbus-gpio.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-ccgx-ucsi.c i2c: Introduce common module to instantiate CCGx UCSI 2022-02-15 10:04:53 +01:00
i2c-ccgx-ucsi.h i2c: Introduce common module to instantiate CCGx UCSI 2022-02-15 10:04:53 +01:00
i2c-cht-wc.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-cp2615.c i2c: cp2615: check for allocation failure in cp2615_i2c_recv() 2021-06-20 23:13:34 +02:00
i2c-cpm.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-cros-ec-tunnel.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-davinci.c i2c: davinci: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-designware-amdpsp.c i2c: designware: Add doorbell support for Mendocino 2023-04-20 18:20:05 +08:00
i2c-designware-baytrail.c i2c: designware: Add AMD PSP I2C bus support 2022-02-11 15:38:23 +01:00
i2c-designware-common.c i2c: designware: Add driver support for Wangxun 10Gb NIC 2023-06-05 11:30:28 +02:00
i2c-designware-core.h Biggest news is not a patch this time 2023-07-02 10:22:38 -07:00
i2c-designware-master.c i2c: designware: Add driver support for Wangxun 10Gb NIC 2023-06-05 11:30:28 +02:00
i2c-designware-pcidrv.c usb: typec: ucsi: Mark dGPUs as DEVICE scope 2023-06-14 10:47:11 +02:00
i2c-designware-platdrv.c i2c: designware: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-designware-slave.c i2c: designware: fix idx_write_cnt in read loop 2023-06-05 11:58:20 +02:00
i2c-digicolor.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-diolan-u2c.c i2c: drivers: Use generic definitions for bus frequencies 2020-03-24 22:36:59 +01:00
i2c-dln2.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-eg20t.c i2c: move drivers from strlcpy to strscpy 2022-08-11 23:02:51 +02:00
i2c-elektor.c Merge branch 'i2c/for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2021-02-22 09:02:24 -08:00
i2c-emev2.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-exynos5.c i2c: exynos5: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-fsi.c i2c: fsi: Prevent adding adapters for ports without dts nodes 2020-07-24 21:31:33 +02:00
i2c-gpio.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-gxp.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-highlander.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-hisi.c i2c: hisi: Only use the completion interrupt to finish the transfer 2023-03-16 21:02:15 +01:00
i2c-hix5hd2.c i2c: hix5hd2: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-hydra.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-i801.c i2c: i801: Remove #ifdef guards for PM related functions 2023-08-08 15:36:48 +02:00
i2c-ibm_iic.c i2c: Delete error messages for failed memory allocations 2023-06-07 14:11:23 +02:00
i2c-ibm_iic.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
i2c-icy.c i2c: move drivers from strlcpy to strscpy 2022-08-11 23:02:51 +02:00
i2c-img-scb.c i2c: img-scb: Remove #ifdef guards for PM related functions 2023-08-08 15:36:49 +02:00
i2c-imx-lpi2c.c i2c: imx-lpi2c: directly return ISR when detect a NACK 2023-08-08 15:36:47 +02:00
i2c-imx.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-iop3xx.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-iop3xx.h Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-07-15 21:10:39 -07:00
i2c-isch.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-ismt.c i2c: ismt: Fix an out-of-bounds bug in ismt_access() 2022-12-07 21:27:08 +01:00
i2c-jz4780.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-kempld.c i2c: kempld: Convert to use regular device PM 2023-08-08 15:36:49 +02:00
i2c-lpc2k.c i2c: lpc2k: Remove #ifdef guards for PM related functions 2023-08-08 15:36:49 +02:00
i2c-ls2x.c i2c: ls2x: Add driver for Loongson-2K/LS7A I2C controller 2023-02-02 22:23:59 +01:00
i2c-mchp-pci1xxxx.c i2c: mchp-pci1xxxx: Avoid cast to incompatible function type 2023-06-05 10:43:45 +02:00
i2c-meson.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-microchip-corei2c.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-mlxbf.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-mlxcpld.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-mpc.c i2c: mpc: Drop unused variable 2023-07-06 21:45:05 +02:00
i2c-mt65xx.c i2c: mt65xx: Remove #ifdef guards for PM related functions 2023-08-08 15:36:49 +02:00
i2c-mt7621.c i2c: mt7621: Use devm_clk_get_enabled() 2023-06-23 11:56:24 +02:00
i2c-mv64xxx.c Biggest news is not a patch this time 2023-07-02 10:22:38 -07:00
i2c-mxs.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-nforce2-s4985.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-nforce2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-nomadik.c i2c: nomadik: Remove #ifdef guards for PM related functions 2023-08-08 15:36:49 +02:00
i2c-npcm7xx.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-nvidia-gpu.c usb: typec: ucsi: Mark dGPUs as DEVICE scope 2023-06-14 10:47:11 +02:00
i2c-ocores.c i2c: ocores: Remove #ifdef guards for PM related functions 2023-08-08 15:36:49 +02:00
i2c-octeon-core.c i2c: octeon: check correct size of maximum RECV_LEN packet 2021-01-17 12:26:55 +01:00
i2c-octeon-core.h i2c: octeon: Prevent error message on bus error 2018-03-02 11:11:15 +01:00
i2c-octeon-platdrv.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-omap.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-opal.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-owl.c i2c: owl: Use devm_clk_get_enabled() 2023-06-23 12:19:34 +02:00
i2c-parport.c i2c: move drivers from strlcpy to strscpy 2022-08-11 23:02:51 +02:00
i2c-pasemi-core.c i2c: /pasemi: PASemi I2C controller IRQ enablement 2022-11-12 21:30:16 +01:00
i2c-pasemi-core.h i2c: /pasemi: PASemi I2C controller IRQ enablement 2022-11-12 21:30:16 +01:00
i2c-pasemi-pci.c i2c: pasemi: Drop I2C classes from platform driver variant 2022-02-15 10:28:34 +01:00
i2c-pasemi-platform.c i2c: pasemi-platform: Use devm_clk_get_enabled() 2023-06-23 11:56:34 +02:00
i2c-pca-isa.c isa: Make the remove callback for isa drivers return void 2021-01-26 07:42:27 +01:00
i2c-pca-platform.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-piix4.c i2c: piix4: Fix adapter not be removed in piix4_remove() 2022-11-01 13:09:33 +01:00
i2c-pnx.c i2c: pnx: Remove #ifdef guards for PM related functions 2023-08-08 15:36:50 +02:00
i2c-powermac.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-pxa-pci.c i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe 2022-12-05 11:00:34 +01:00
i2c-pxa.c i2c: pxa: Remove #ifdef guards for PM related functions 2023-08-08 15:36:50 +02:00
i2c-qcom-cci.c i2c: qcom-cci:Use devm_platform_get_and_ioremap_resource() 2023-06-08 20:52:39 +02:00
i2c-qcom-geni.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-qup.c i2c: qup: Remove #ifdef guards for PM related functions 2023-08-08 15:36:50 +02:00
i2c-rcar.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-riic.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-rk3x.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-robotfuzz-osif.c i2c: robotfuzz-osif: fix control-request directions 2021-06-24 22:08:00 +02:00
i2c-rzv2m.c i2c: rzv2m: Disable the operation of unit in case of error 2023-06-05 12:03:35 +02:00
i2c-s3c2410.c i2c: s3c2410: Remove redundant dev_err() 2023-08-08 15:36:48 +02:00
i2c-scmi.c More ACPI updates for 6.5-rc1 2023-07-06 22:25:06 -07:00
i2c-sh7760.c i2c: Improve size determinations 2023-06-07 14:12:11 +02:00
i2c-sh_mobile.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-sibyte.c i2c: Use separate MODULE_AUTHOR() statements for multiple authors 2020-07-04 08:25:13 +02:00
i2c-simtec.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-sis96x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-sis630.c i2c: fix spelling typos in comments 2022-10-20 23:09:10 +02:00
i2c-sis5595.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-sprd.c i2c: sprd: Delete i2c adapter in .remove's error path 2023-06-07 12:29:58 +02:00
i2c-st.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-stm32.c i2c: stm32: Simplify with dev_err_probe() 2020-09-21 11:45:43 +02:00
i2c-stm32.h i2c: stm32: Use the correct style for SPDX License Identifier 2019-08-14 14:56:54 +02:00
i2c-stm32f4.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-stm32f7.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-sun6i-p2wi.c i2c: sun6i-p2wi: Use devm_clk_get_enabled() 2023-06-23 11:57:20 +02:00
i2c-synquacer.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-taos-evm.c i2c: move drivers from strlcpy to strscpy 2022-08-11 23:02:51 +02:00
i2c-tegra-bpmp.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-tegra.c i2c: tegra: allow VI support to be compiled out 2023-06-05 10:34:57 +02:00
i2c-thunderx-pcidrv.c drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers 2022-05-21 13:41:28 +02:00
i2c-tiny-usb.c i2c: Delete error messages for failed memory allocations 2023-06-07 14:11:23 +02:00
i2c-uniphier-f.c i2c: uniphier-f: Use devm_clk_get_enabled() 2023-06-23 12:22:34 +02:00
i2c-uniphier.c i2c: uniphier: Use devm_clk_get_enabled() 2023-06-23 12:22:41 +02:00
i2c-versatile.c i2c: versatile: Use devm_platform_get_and_ioremap_resource() 2023-06-14 10:40:09 +02:00
i2c-via.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-viapro.c i2c: busses: Use fallthrough pseudo-keyword 2020-07-23 22:04:08 +02:00
i2c-viperboard.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-virtio.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
i2c-wmt.c i2c: wmt: Use devm_platform_get_and_ioremap_resource() 2023-06-14 10:41:17 +02:00
i2c-xgene-slimpro.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
i2c-xiic.c i2c: xiic: Don't try to handle more interrupt events after error 2023-07-06 21:32:50 +02:00
i2c-xlp9xx.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00
Kconfig i2c: rzv2m: Drop extra space 2023-06-05 12:03:35 +02:00
Makefile i2c: Add GXP SoC I2C Controller 2023-02-17 23:18:20 +01:00
scx200_acb.c i2c: Convert to platform remove callback returning void 2023-06-05 09:47:37 +02:00