regulator: rt4801: Select REGMAP_I2C to fix build error
authorAxel Lin <axel.lin@ingics.com>
Wed, 19 Aug 2020 08:59:59 +0000 (16:59 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 19 Aug 2020 12:02:11 +0000 (13:02 +0100)
Fix build error when CONFIG_REGMAP_I2C is not set.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200819085959.1914471-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig

index ebce11cbab44661ed07b4e667e8f3adc16e68ae5..f719ed5a8c33912ef860521544870f1f5e87744a 100644 (file)
@@ -907,6 +907,7 @@ config REGULATOR_ROHM
 config REGULATOR_RT4801
        tristate "Richtek RT4801 Regulators"
        depends on I2C
+       select REGMAP_I2C
        help
          This adds support for voltage regulators in Richtek RT4801 Display Bias IC.
          The device supports two regulators (DSVP/DSVN).