Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: supply: max17042_battery: fix typo in MAX17042_IAvg_empty

Datasheet gives the name IAvg_empty, not LAvg_empty.

Signed-off-by: Henrik Grimler <henrik@grimler.se>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Henrik Grimler and committed by
Sebastian Reichel
d0c27c92 223a3b82

+3 -3
+1 -1
drivers/power/supply/max17042_battery.c
··· 786 786 if ((chip->chip_type == MAXIM_DEVICE_TYPE_MAX17042) || 787 787 (chip->chip_type == MAXIM_DEVICE_TYPE_MAX17047) || 788 788 (chip->chip_type == MAXIM_DEVICE_TYPE_MAX17050)) { 789 - max17042_override_por(map, MAX17042_LAvg_empty, config->lavg_empty); 789 + max17042_override_por(map, MAX17042_IAvg_empty, config->iavg_empty); 790 790 max17042_override_por(map, MAX17042_TempNom, config->temp_nom); 791 791 max17042_override_por(map, MAX17042_TempLim, config->temp_lim); 792 792 max17042_override_por(map, MAX17042_FCTC, config->fctc);
+2 -2
include/linux/power/max17042_battery.h
··· 78 78 MAX17042_T_empty = 0x34, 79 79 80 80 MAX17042_FullCAP0 = 0x35, 81 - MAX17042_LAvg_empty = 0x36, 81 + MAX17042_IAvg_empty = 0x36, 82 82 MAX17042_FCTC = 0x37, 83 83 MAX17042_RCOMP0 = 0x38, 84 84 MAX17042_TempCo = 0x39, ··· 221 221 u16 fullcap; /* 0x10 */ 222 222 u16 fullcapnom; /* 0x23 */ 223 223 u16 socempty; /* 0x33 */ 224 - u16 lavg_empty; /* 0x36 */ 224 + u16 iavg_empty; /* 0x36 */ 225 225 u16 dqacc; /* 0x45 */ 226 226 u16 dpacc; /* 0x46 */ 227 227 u16 qrtbl00; /* 0x12 */