Skip to content

Commit eb7ed65

Browse files
ukleineksre
authored andcommitted
power: supply: mt6360_charger: Use of match table unconditionally
mt6360_charger_of_id is defined unconditionally, so it doesn't make sense to not use it for the driver's .of_match_table member. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/ff94de5fb3ee6aeb1c0256e1a00c1c5ac350b430.1780048925.git.u.kleine-koenig@baylibre.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent e28f749 commit eb7ed65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/mt6360_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ MODULE_DEVICE_TABLE(platform, mt6360_charger_id);
849849
static struct platform_driver mt6360_charger_driver = {
850850
.driver = {
851851
.name = "mt6360-chg",
852-
.of_match_table = of_match_ptr(mt6360_charger_of_id),
852+
.of_match_table = mt6360_charger_of_id,
853853
},
854854
.probe = mt6360_charger_probe,
855855
.id_table = mt6360_charger_id,

0 commit comments

Comments
 (0)