power: supply: smb347-charger: Utilize generic regmap caching
authorDmitry Osipenko <digetx@gmail.com>
Sat, 31 Jul 2021 17:38:37 +0000 (20:38 +0300)
committerSebastian Reichel <sre@kernel.org>
Mon, 16 Aug 2021 15:56:58 +0000 (17:56 +0200)
commit17e7bc532cd540d0e6e2fa1af19faf74ba252051
treec27424bf50b7693aab7cf057dd14f07a511800ae
parent4ac59d85a2369eac88f6042e3b9b8a4789525909
power: supply: smb347-charger: Utilize generic regmap caching

Utilize generic regmap caching in order to avoid unnecessary slow I2C
accesses to all constant registers each time the supply status updated
and remove local caching of charger state to make code cleaner.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/smb347-charger.c