]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: core: Break capacity loop
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 14 Nov 2021 23:12:07 +0000 (00:12 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 15 Nov 2021 13:20:11 +0000 (14:20 +0100)
commit4c865078b912901aaca957e4702030439845f8f2
tree54a85d8b948953bb03babe039fae38cb32d21baf
parentbad68f6c0c96b209be688acd1511fc590315093b
power: supply: core: Break capacity loop

We should not go on looking for more capacity tables after
we realize we have looked at the last one in
power_supply_find_ocv2cap_table().

Fixes: fd7ec456301d ("power: supply: core: Add some helpers to use the battery OCV capacity table")
Cc: Chunyan Zhang <chunyan.zhang@unisoc.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c