power: supply: bq256xx: Init ichg/vbat value with chip default value
authorHermes Zhang <chenhuiz@axis.com>
Tue, 10 Jan 2023 02:47:46 +0000 (10:47 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 3 Feb 2023 12:32:01 +0000 (13:32 +0100)
commit4651b6b72934e602202def29c88813d95716f7c7
treecbe30a34ffab04b22d01b975f9bf5e3db39e30e1
parentfccd2b763c3476d20c16e2e8534d345e5e013b4a
power: supply: bq256xx: Init ichg/vbat value with chip default value

Init the ichg/vbat reg with chip default value instead of the max value
used now. The max value set in driver will result an unsafe case (e.g.
battery is over charging when in a hot environment) if no user space
update the value later.

Signed-off-by: Hermes Zhang <chenhuiz@axis.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq256xx_charger.c