From: Uwe Kleine-König (The Capable Hub) Date: Fri, 29 May 2026 10:18:17 +0000 (+0200) Subject: power: supply: max14577: Drop driver data in of and platform device id arrays X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37258ad1f3a52ea442c32b3c92ad7146e74050c7;p=thirdparty%2Fkernel%2Flinux.git power: supply: max14577: Drop driver data in of and platform device id arrays 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) Reviewed-by: Krzysztof Kozlowski Link: https://patch.msgid.link/62e1b01a6591dd59406a78f2bbca619d734a9150.1780048925.git.u.kleine-koenig@baylibre.com Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/max14577_charger.c b/drivers/power/supply/max14577_charger.c index 63077d38ea30..a15d94942184 100644 --- a/drivers/power/supply/max14577_charger.c +++ b/drivers/power/supply/max14577_charger.c @@ -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);