]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commite546533ec999b6d6f214f1b08e9032ff54fd1449
treee44e12194a6883fa364c411c5eca94bcd039f5b0
parent4ebd812d85a39fe31a4a1d41c0ff3188dc8da0a5
power: supply: bq24257_charger: Replace depends on REGMAP_I2C with select

BugLink: https://bugs.launchpad.net/bugs/1885322
[ Upstream commit 87c3d579c8ed0eaea6b1567d529a8daa85a2bc6c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/power/supply/Kconfig