This is a note to let you know that I've just added the patch titled power: supply: fix sbs-charger build, needs REGMAP_I2C to the 5.11-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: power-supply-fix-sbs-charger-build-needs-regmap_i2c.patch and it can be found in the queue-5.11 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 90d867db6536e4ffc9804fa7bbc6b5411d83c09d Author: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Date: Sat Jan 16 13:13:10 2021 -0800 power: supply: fix sbs-charger build, needs REGMAP_I2C [ Upstream commit a4bdea2004b28f47ab48ea99172eda8628f6fb44 ] CHARGER_SBS should select REGMAP_I2C since it uses API(s) that are provided by that Kconfig symbol. Fixes these errors: ../drivers/power/supply/sbs-charger.c:149:21: error: variable â??sbs_regmapâ?? has initializer but incomplete type static const struct regmap_config sbs_regmap = { ../drivers/power/supply/sbs-charger.c:150:3: error: â??const struct regmap_configâ?? has no member named â??reg_bitsâ?? .reg_bits = 8, ../drivers/power/supply/sbs-charger.c:155:23: error: â??REGMAP_ENDIAN_LITTLEâ?? undeclared here (not in a function) .val_format_endian = REGMAP_ENDIAN_LITTLE, /* since based on SMBus */ ../drivers/power/supply/sbs-charger.c: In function â??sbs_probeâ??: ../drivers/power/supply/sbs-charger.c:183:17: error: implicit declaration of function â??devm_regmap_init_i2câ??; did you mean â??devm_request_irqâ??? [-Werror=implicit-function-declaration] chip->regmap = devm_regmap_init_i2c(client, &sbs_regmap); ../drivers/power/supply/sbs-charger.c: At top level: ../drivers/power/supply/sbs-charger.c:149:35: error: storage size of â??sbs_regmapâ?? isnâ??t known static const struct regmap_config sbs_regmap = { Fixes: feb583e37f8a ("power: supply: add sbs-charger driver") Reported-by: Martin Mokrejs <mmokrejs@xxxxxxxxxxxxxxxxxx> Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Tested-by: Martin Mokrejs <mmokrejs@xxxxxxxxxxxxxxxxxx> Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index eec646c568b7b..1699b9269a78e 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -229,6 +229,7 @@ config BATTERY_SBS config CHARGER_SBS tristate "SBS Compliant charger" depends on I2C + select REGMAP_I2C help Say Y to include support for SBS compliant battery chargers.