]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
power: supply: max14577: Drop driver data in of and platform device id arrays
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Fri, 29 May 2026 10:18:17 +0000 (12:18 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 1 Jun 2026 23:34:21 +0000 (01:34 +0200)
These values are not used, the relevant distinction happens in the mfd
parent driver. So they can be dropped.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/62e1b01a6591dd59406a78f2bbca619d734a9150.1780048925.git.u.kleine-koenig@baylibre.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max14577_charger.c

index 63077d38ea30a781d1b443fb0d05c549dfce6552..a15d9494218488306433bfa9a06ec536589d64d5 100644 (file)
@@ -613,18 +613,16 @@ static void max14577_charger_remove(struct platform_device *pdev)
 }
 
 static const struct platform_device_id max14577_charger_id[] = {
-       { "max14577-charger", MAXIM_DEVICE_TYPE_MAX14577, },
-       { "max77836-charger", MAXIM_DEVICE_TYPE_MAX77836, },
+       { .name = "max14577-charger" },
+       { .name = "max77836-charger" },
        { }
 };
 MODULE_DEVICE_TABLE(platform, max14577_charger_id);
 
 static const struct of_device_id of_max14577_charger_dt_match[] = {
-       { .compatible = "maxim,max14577-charger",
-         .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, },
-       { .compatible = "maxim,max77836-charger",
-         .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, },
-       { },
+       { .compatible = "maxim,max14577-charger" },
+       { .compatible = "maxim,max77836-charger" },
+       { }
 };
 MODULE_DEVICE_TABLE(of, of_max14577_charger_dt_match);