aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/Kconfig
diff options
context:
space:
mode:
authorChristoph Fritz <chf.fritz@googlemail.com>2020-07-07 12:57:31 +0200
committerMark Brown <broonie@kernel.org>2020-07-07 13:50:46 +0100
commit318b8a09f295cbf86fd504bcff3769b1fc4a936b (patch)
treed5ef4c66bd7844cd60d2a1903962027c944d9c98 /drivers/regulator/Kconfig
parentMerge series "Add pca9450 driver" from Robin Gong <yibin.gong@nxp.com>: (diff)
downloadlinux-dev-318b8a09f295cbf86fd504bcff3769b1fc4a936b.tar.xz
linux-dev-318b8a09f295cbf86fd504bcff3769b1fc4a936b.zip
regulator: fan53880: Add support for COMPILE_TEST
This patch adds support for COMPILE_TEST while fixing a warning when no support for device tree is there. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Link: https://lore.kernel.org/r/1c437154873ace65ff738a0ebca511308f1cecc1.camel@googlemail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/Kconfig')
-rw-r--r--drivers/regulator/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 8f9bef574af2..64dc71c1e3d7 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -338,7 +338,7 @@ config REGULATOR_FAN53555
config REGULATOR_FAN53880
tristate "Fairchild FAN53880 Regulator"
- depends on I2C
+ depends on I2C && (OF || COMPILE_TEST)
select REGMAP_I2C
help
This driver supports Fairchild (ON Semiconductor) FAN53880