diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2021-06-27 01:47:49 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-19 10:01:22 +0200 |
| commit | c0d7a6d28a96736c7c13735a6fce7b56951f84b2 (patch) | |
| tree | 77e7f71a0768ef6b8ca39060cb38855c2f730710 /include | |
| parent | 9558612cb829f2c022b788f55d6b8437d5234a82 (diff) | |
| download | linux-c0d7a6d28a96736c7c13735a6fce7b56951f84b2.tar.gz linux-c0d7a6d28a96736c7c13735a6fce7b56951f84b2.tar.bz2 linux-c0d7a6d28a96736c7c13735a6fce7b56951f84b2.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mfd/abx500/ux500_chargalg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/abx500/ux500_chargalg.h b/include/linux/mfd/abx500/ux500_chargalg.h index 9b97d284d0ce..bc3819dc33e1 100644 --- a/include/linux/mfd/abx500/ux500_chargalg.h +++ b/include/linux/mfd/abx500/ux500_chargalg.h @@ -15,7 +15,7 @@ * - POWER_SUPPLY_TYPE_USB, * because only them store as drv_data pointer to struct ux500_charger. */ -#define psy_to_ux500_charger(x) power_supply_get_drvdata(psy) +#define psy_to_ux500_charger(x) power_supply_get_drvdata(x) /* Forward declaration */ struct ux500_charger; |
