power: supply: ab8500_fg: Break loop for measurement
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 29 Jan 2022 00:49:18 +0000 (01:49 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 11 Feb 2022 19:24:53 +0000 (20:24 +0100)
commitedc400e1632fc65dd4dc92075db12b6986ebe5fd
tree251aacacc53158874443a565eed7965f2f015270
parent2b0e7ac0841b3906aeecf432567b02af683a596c
power: supply: ab8500_fg: Break loop for measurement

In the Samsung code tree we find that it can happen that this
measurement loop goes on for a long time, and it seems like a
good idea to break it after 70 iterations if it goes on for
too long.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_fg.c