power: supply: max17042_battery: more robust chip type checks
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Mon, 16 Aug 2021 16:50:15 +0000 (18:50 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 17 Aug 2021 13:33:52 +0000 (15:33 +0200)
commit4bf00434a6183a33c1fa315db7cc4d4a00a76be0
treed026a2ce982a94b065501d166dfac5892ba0e9ad
parented0d0a0506025f06061325cedae1bbebd081620a
power: supply: max17042_battery: more robust chip type checks

Prepared by checking the datasheets of max17042, max17047/50
and max170455 for differences in register maps.

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