]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 06:53:16 +0000 (08:53 +0200)
commitf0f3f0abe58e8f15974e17aab62ac3d4acb9e021
tree9948125af6e27eaffc14eac6d90ecb4857d52480
parent7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08
power: supply: ab8500: Fix an old bug

commit f1c74a6c07e76fcb31a4bcc1f437c4361a2674ce upstream.

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: 297d716f6260 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/mfd/abx500/ux500_chargalg.h