]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
power: supply: max17042: add max77705 fuel gauge support
authorDzmitry Sankouski <dsankouski@gmail.com>
Wed, 8 Jan 2025 14:13:49 +0000 (17:13 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 15 Jan 2025 21:39:18 +0000 (22:39 +0100)
Add max77705 fuel gauge support.

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Link: https://lore.kernel.org/r/20250108-starqltechn_integration_upstream-v14-5-f6e84ec20d96@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c

index 4037843e25bb1553f339af3c8fbb7bbd3eca4473..655b3f25dbd7ca78f530aee3663cbe241722c3cf 100644 (file)
@@ -1234,6 +1234,8 @@ static const struct of_device_id max17042_dt_match[] __used = {
                .data = (void *) MAXIM_DEVICE_TYPE_MAX17050 },
        { .compatible = "maxim,max17055",
                .data = (void *) MAXIM_DEVICE_TYPE_MAX17055 },
+       { .compatible = "maxim,max77705-battery",
+               .data = (void *) MAXIM_DEVICE_TYPE_MAX17047 },
        { .compatible = "maxim,max77849-battery",
                .data = (void *) MAXIM_DEVICE_TYPE_MAX17047 },
        { },
@@ -1256,6 +1258,7 @@ static const struct platform_device_id max17042_platform_id[] = {
        { "max17047", MAXIM_DEVICE_TYPE_MAX17047 },
        { "max17050", MAXIM_DEVICE_TYPE_MAX17050 },
        { "max17055", MAXIM_DEVICE_TYPE_MAX17055 },
+       { "max77705-battery", MAXIM_DEVICE_TYPE_MAX17047 },
        { "max77849-battery", MAXIM_DEVICE_TYPE_MAX17047 },
        { }
 };