From: H. Nikolaus Schaller Date: Thu, 31 Aug 2017 06:59:50 +0000 (+0200) Subject: power: supply: bq27xxx: enable writing capacity values for bq27421 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d01fd38a3b01ca2112a689d70f7ecec40d952ee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git power: supply: bq27xxx: enable writing capacity values for bq27421 Tested on Pyra prototype with bq27421. Signed-off-by: H. Nikolaus Schaller Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/supply/bq27xxx_battery.c index 527dc2558fd2..51f0961ecf3e 100644 --- a/drivers/power/supply/bq27xxx_battery.c +++ b/drivers/power/supply/bq27xxx_battery.c @@ -688,15 +688,11 @@ static struct bq27xxx_dm_reg bq27545_dm_regs[] = { #define bq27545_dm_regs 0 #endif -#if 0 /* not yet tested */ static struct bq27xxx_dm_reg bq27421_dm_regs[] = { [BQ27XXX_DM_DESIGN_CAPACITY] = { 82, 10, 2, 0, 8000 }, [BQ27XXX_DM_DESIGN_ENERGY] = { 82, 12, 2, 0, 32767 }, [BQ27XXX_DM_TERMINATE_VOLTAGE] = { 82, 16, 2, 2500, 3700 }, }; -#else -#define bq27421_dm_regs 0 -#endif static struct bq27xxx_dm_reg bq27425_dm_regs[] = { [BQ27XXX_DM_DESIGN_CAPACITY] = { 82, 12, 2, 0, 32767 },