]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1775a51120cd0f9f61c6bba63aeb5f7f3799c6da
tree251aacacc53158874443a565eed7965f2f015270
parent44e3bb0933bc19145250dde3c1d7495eff875d68
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