]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: ab8500: Fix an old bug
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 26 Jun 2021 23:47:49 +0000 (01:47 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 29 Jun 2021 22:14:55 +0000 (00:14 +0200)
commitbdbcf1a1cb4d8c2f5f8a13d09a70554d41f7082a
tree12ff79f91bd1f2255b3786c5292830b1e970838f
parentbe54ff89c9539065a27223d7b14307376ddb29ff
power: supply: ab8500: Fix an old bug

Trying to get the AB8500 charging driver working I ran into a bit
of bitrot: we haven't used the driver for a while so errors in
refactorings won't be noticed.

This one is pretty self evident: use argument to the macro or we
end up with a random pointer to something else.

Cc: stable@vger.kernel.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Marcus Cooper <codekipper@gmail.com>
Fixes: af564da181b0 ("power_supply: Change ownership from driver to core")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500-chargalg.h