Commit 1e8b82c1 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Sebastian Reichel

power: Allow compile test of GPIO consumers if !GPIOLIB

The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 63369b2b
...@@ -333,7 +333,7 @@ config CHARGER_LP8788 ...@@ -333,7 +333,7 @@ config CHARGER_LP8788
config CHARGER_GPIO config CHARGER_GPIO
tristate "GPIO charger" tristate "GPIO charger"
depends on GPIOLIB depends on GPIOLIB || COMPILE_TEST
help help
Say Y to include support for chargers which report their online status Say Y to include support for chargers which report their online status
through a GPIO pin. through a GPIO pin.
...@@ -391,26 +391,30 @@ config CHARGER_BQ2415X ...@@ -391,26 +391,30 @@ config CHARGER_BQ2415X
config CHARGER_BQ24190 config CHARGER_BQ24190
tristate "TI BQ24190 battery charger driver" tristate "TI BQ24190 battery charger driver"
depends on I2C && GPIOLIB depends on I2C
depends on GPIOLIB || COMPILE_TEST
help help
Say Y to enable support for the TI BQ24190 battery charger. Say Y to enable support for the TI BQ24190 battery charger.
config CHARGER_BQ24257 config CHARGER_BQ24257
tristate "TI BQ24257 battery charger driver" tristate "TI BQ24257 battery charger driver"
depends on I2C && GPIOLIB depends on I2C
depends on GPIOLIB || COMPILE_TEST
depends on REGMAP_I2C depends on REGMAP_I2C
help help
Say Y to enable support for the TI BQ24257 battery charger. Say Y to enable support for the TI BQ24257 battery charger.
config CHARGER_BQ24735 config CHARGER_BQ24735
tristate "TI BQ24735 battery charger support" tristate "TI BQ24735 battery charger support"
depends on I2C && GPIOLIB depends on I2C
depends on GPIOLIB || COMPILE_TEST
help help
Say Y to enable support for the TI BQ24735 battery charger. Say Y to enable support for the TI BQ24735 battery charger.
config CHARGER_BQ25890 config CHARGER_BQ25890
tristate "TI BQ25890 battery charger driver" tristate "TI BQ25890 battery charger driver"
depends on I2C && GPIOLIB depends on I2C
depends on GPIOLIB || COMPILE_TEST
select REGMAP_I2C select REGMAP_I2C
help help
Say Y to enable support for the TI BQ25890 battery charger. Say Y to enable support for the TI BQ25890 battery charger.
...@@ -462,7 +466,8 @@ config BATTERY_RT5033 ...@@ -462,7 +466,8 @@ config BATTERY_RT5033
config CHARGER_RT9455 config CHARGER_RT9455
tristate "Richtek RT9455 battery charger driver" tristate "Richtek RT9455 battery charger driver"
depends on I2C && GPIOLIB depends on I2C
depends on GPIOLIB || COMPILE_TEST
select REGMAP_I2C select REGMAP_I2C
help help
Say Y to enable support for Richtek RT9455 battery charger. Say Y to enable support for Richtek RT9455 battery charger.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment