Thread (7 messages) 7 messages, 3 authors, 2021-10-27
STALE1677d
Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH v2 3/4] thermal: mediatek: Remove data void casts

From: Markus Schneider-Pargmann <msp@baylibre.com>
Date: 2021-10-19 09:36:35
Also in: linux-arm-kernel, linux-devicetree, linux-pm
Subsystem: the rest, thermal · Maintainers: Linus Torvalds, Rafael J. Wysocki, Daniel Lezcano

It is not necessary to cast struct mtk_thermal_data to (void*).

This patch removes these casts.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
---
 drivers/thermal/mtk_thermal.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c
index 93ee043d70da..af6cd11eb221 100644
--- a/drivers/thermal/mtk_thermal.c
+++ b/drivers/thermal/mtk_thermal.c
@@ -941,23 +941,23 @@ static int mtk_thermal_get_calibration_data(struct device *dev,
 static const struct of_device_id mtk_thermal_of_match[] = {
 	{
 		.compatible = "mediatek,mt8173-thermal",
-		.data = (void *)&mt8173_thermal_data,
+		.data = &mt8173_thermal_data,
 	},
 	{
 		.compatible = "mediatek,mt2701-thermal",
-		.data = (void *)&mt2701_thermal_data,
+		.data = &mt2701_thermal_data,
 	},
 	{
 		.compatible = "mediatek,mt2712-thermal",
-		.data = (void *)&mt2712_thermal_data,
+		.data = &mt2712_thermal_data,
 	},
 	{
 		.compatible = "mediatek,mt7622-thermal",
-		.data = (void *)&mt7622_thermal_data,
+		.data = &mt7622_thermal_data,
 	},
 	{
 		.compatible = "mediatek,mt8183-thermal",
-		.data = (void *)&mt8183_thermal_data,
+		.data = &mt8183_thermal_data,
 	}, {
 	},
 };
-- 
2.33.0


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help