mirror-linux/include/linux/regulator
Manivannan Sadhasivam 907af7d6e0
regulator: Move OF_ API declarations/definitions outside CONFIG_REGULATOR
Since these are hidden inside CONFIG_REGULATOR, building the consumer
drivers without CONFIG_REGULATOR will result in the following build error:

>> drivers/pci/pwrctrl/slot.c:39:15: error: implicit declaration of
function 'of_regulator_bulk_get_all'; did you mean 'regulator_bulk_get'?
[-Werror=implicit-function-declaration]
      39 |         ret = of_regulator_bulk_get_all(dev, dev_of_node(dev),
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~
         |               regulator_bulk_get
   cc1: some warnings being treated as errors

This also removes the duplicated definitions that were possibly added to
fix the build issues.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501020407.HmQQQKa0-lkp@intel.com/
Fixes: 27b9ecc7a9 ("regulator: Add of_regulator_bulk_get_all")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://patch.msgid.link/20250104115058.19216-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-01-06 13:04:34 +00:00
..
act8865.h
arizona-ldo1.h
arizona-micsupp.h
consumer.h regulator: Move OF_ API declarations/definitions outside CONFIG_REGULATOR 2025-01-06 13:04:34 +00:00
coupler.h
da9121.h
da9211.h
db8500-prcmu.h
driver.h regulator: doc: add missing documentation for init_cb 2024-10-23 12:46:39 +01:00
fan53555.h
fixed.h
gpio-regulator.h
lp872x.h
lp3971.h
lp3972.h
machine.h regulator: doc: remove documentation comment for regulator_init 2024-10-23 12:46:40 +01:00
max1586.h
max8649.h
max8660.h
max8952.h
max8973-regulator.h
mt6311.h
mt6315-regulator.h
mt6323-regulator.h
mt6331-regulator.h
mt6332-regulator.h
mt6357-regulator.h
mt6358-regulator.h
mt6359-regulator.h
mt6380-regulator.h
mt6397-regulator.h
of_regulator.h
pca9450.h
pfuze100.h
tps6507x.h
tps51632-regulator.h
tps62360.h
userspace-consumer.h