Skip to contentSkip to conversation

thermal/drivers/thermal_mmio: Drop of_match_ptr()

PATCH Applied Jean Delvare 2 participants 2 messages Aug 4, 2022 – Aug 31, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal/drivers/thermal_mmio: Drop of_match_ptr()

From: Jean Delvare <[email protected]>
Subject: thermal/drivers/thermal_mmio: Drop of_match_ptr()

Now that the driver depends on OF, we know what of_match_ptr() will always resolve to, so we might as well save cpp some work.

Cc Talel Shenhar <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Daniel Lezcano <[email protected]>

---
This could have been folded into my previous patch, sorry for missing it.

 drivers/thermal/thermal_mmio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/thermal_mmio.c +1 -1
@@ -107,7 +107,7 @@ static struct platform_driver thermal_mm
 	.probe = thermal_mmio_probe,
 	.driver = {
 		.name = "thermal-mmio",
-		.of_match_table = of_match_ptr(thermal_mmio_id_table),
+		.of_match_table = thermal_mmio_id_table,
 	},
 };
 
Signature · 2 lines
Jean Delvare
SUSE L3 Support
maintainer Applied
#1 lore raw
Quoted 22 lines · Jean Delvare

From: Jean Delvare <[email protected]>
Subject: thermal/drivers/thermal_mmio: Drop of_match_ptr()

Now that the driver depends on OF, we know what of_match_ptr() will always resolve to, so we might as well save cpp some work.

Cc Talel Shenhar <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Daniel Lezcano <[email protected]>

---
This could have been folded into my previous patch, sorry for missing it.

 drivers/thermal/thermal_mmio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/thermal_mmio.c 2022-08-04 13:50:46.426178245 +0200 renamed from drivers/thermal/thermal_mmio.c 2022-05-22 21:52:31.000000000 +0200 +0 -0
@@ -107,7 +107,7 @@ static struct platform_driver thermal_mm
        .probe = thermal_mmio_probe,

drivers/thermal/thermal_mmio.c 2022-08-04 13:50:46.426178245 +0200 static struct platform_driver thermal_mm

Quoted 10 lines
drivers/thermal/thermal_mmio.c 2022-08-04 13:50:46.426178245 +0200 renamed from drivers/thermal/thermal_mmio.c 2022-05-22 21:52:31.000000000 +0200 +1 -2
        .driver = {
                .name = "thermal-mmio",
-               .of_match_table = of_match_ptr(thermal_mmio_id_table),
+               .of_match_table = thermal_mmio_id_table,
        },
 };
 
 
 
--

Applied as 6.1 material, thanks!