power: supply: bq24257_charger: Replace depends on REGMAP_I2C with select
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 13 Apr 2020 14:10:51 +0000 (16:10 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 13 Apr 2020 14:21:53 +0000 (16:21 +0200)
commit87c3d579c8ed0eaea6b1567d529a8daa85a2bc6c
tree358cdb046fd8bd136af09617139e9499e69d63e6
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
power: supply: bq24257_charger: Replace depends on REGMAP_I2C with select

regmap is a library function that gets selected by drivers that need
it. No driver modules should depend on it. Depending on REGMAP_I2C makes
this driver only build if another driver already selected REGMAP_I2C,
as the symbol can't be selected through the menu kernel configuration.

Fixes: 2219a935963e ("power_supply: Add TI BQ24257 charger driver")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig