power: supply: bq27xxx: Enable data memory update for certain chips
authorLiam Breck <kernel@networkimprov.net>
Thu, 24 Aug 2017 03:36:15 +0000 (20:36 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Tue, 29 Aug 2017 10:44:27 +0000 (12:44 +0200)
commit05045379b2740686020618c8cfd4b517cff9f918
treed899412c7e5a3d3fb968a2cfbb4f4e37ba18f4a7
parent3a731c6414c94012328f485b4b1bb88ed841f9eb
power: supply: bq27xxx: Enable data memory update for certain chips

Support data memory update on BQ27425. Parameters from TI datasheets are also
provided for BQ27500, 545, 421, 441, 621; however these are commented out,
as they are not tested.

Add BQ27XXX_O_CFGUP & _O_RAM for use in bq27xxx_chip_data[n].opts
and by data memory update functions.

Signed-off-by: Liam Breck <kernel@networkimprov.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/bq27xxx_battery.c
include/linux/power/bq27xxx_battery.h