]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
power: supply: max17042_battery: fix typo in MAx17042_TOFF
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Mon, 16 Aug 2021 16:50:14 +0000 (18:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:27 +0000 (09:47 +0200)
[ Upstream commit ed0d0a0506025f06061325cedae1bbebd081620a ]

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/max17042_battery.c
include/linux/power/max17042_battery.h

index fa862f0380c416c4564c0b69c0c4068ba4632bae..ab4740c3bf573a3722548e005f05b1c3dbefb9fc 100644 (file)
@@ -726,7 +726,7 @@ static inline void max17042_override_por_values(struct max17042_chip *chip)
        struct max17042_config_data *config = chip->pdata->config_data;
 
        max17042_override_por(map, MAX17042_TGAIN, config->tgain);
-       max17042_override_por(map, MAx17042_TOFF, config->toff);
+       max17042_override_por(map, MAX17042_TOFF, config->toff);
        max17042_override_por(map, MAX17042_CGAIN, config->cgain);
        max17042_override_por(map, MAX17042_COFF, config->coff);
 
index 4badd532294908ac1d38b2a96f9b33e4d65b2640..2f9ff5017f122be52a13d14f222ee1e4cdc7e980 100644 (file)
@@ -69,7 +69,7 @@ enum max17042_register {
        MAX17042_RelaxCFG       = 0x2A,
        MAX17042_MiscCFG        = 0x2B,
        MAX17042_TGAIN          = 0x2C,
-       MAx17042_TOFF           = 0x2D,
+       MAX17042_TOFF           = 0x2D,
        MAX17042_CGAIN          = 0x2E,
        MAX17042_COFF           = 0x2F,