Skip to content

Commit 37258ad

Browse files
ukleineksre
authored andcommitted
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) <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>
1 parent 75a0e1e commit 37258ad

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

drivers/power/supply/max14577_charger.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,18 +613,16 @@ static void max14577_charger_remove(struct platform_device *pdev)
613613
}
614614

615615
static const struct platform_device_id max14577_charger_id[] = {
616-
{ "max14577-charger", MAXIM_DEVICE_TYPE_MAX14577, },
617-
{ "max77836-charger", MAXIM_DEVICE_TYPE_MAX77836, },
616+
{ .name = "max14577-charger" },
617+
{ .name = "max77836-charger" },
618618
{ }
619619
};
620620
MODULE_DEVICE_TABLE(platform, max14577_charger_id);
621621

622622
static const struct of_device_id of_max14577_charger_dt_match[] = {
623-
{ .compatible = "maxim,max14577-charger",
624-
.data = (void *)MAXIM_DEVICE_TYPE_MAX14577, },
625-
{ .compatible = "maxim,max77836-charger",
626-
.data = (void *)MAXIM_DEVICE_TYPE_MAX77836, },
627-
{ },
623+
{ .compatible = "maxim,max14577-charger" },
624+
{ .compatible = "maxim,max77836-charger" },
625+
{ }
628626
};
629627
MODULE_DEVICE_TABLE(of, of_max14577_charger_dt_match);
630628

0 commit comments

Comments
 (0)