Commit 271f1881 authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Mark Brown

spi: s3c64xx: remove unneeded (void *) casts in of_match_table

of_device_id::data is an opaque pointer. No explicit cast is needed.
Remove unneeded (void *) casts in of_match_table.
Reviewed-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240207120431.2766269-8-tudor.ambarus@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 97b63f47
...@@ -1513,31 +1513,31 @@ static const struct platform_device_id s3c64xx_spi_driver_ids[] = { ...@@ -1513,31 +1513,31 @@ static const struct platform_device_id s3c64xx_spi_driver_ids[] = {
static const struct of_device_id s3c64xx_spi_dt_match[] = { static const struct of_device_id s3c64xx_spi_dt_match[] = {
{ .compatible = "samsung,s3c2443-spi", { .compatible = "samsung,s3c2443-spi",
.data = (void *)&s3c2443_spi_port_config, .data = &s3c2443_spi_port_config,
}, },
{ .compatible = "samsung,s3c6410-spi", { .compatible = "samsung,s3c6410-spi",
.data = (void *)&s3c6410_spi_port_config, .data = &s3c6410_spi_port_config,
}, },
{ .compatible = "samsung,s5pv210-spi", { .compatible = "samsung,s5pv210-spi",
.data = (void *)&s5pv210_spi_port_config, .data = &s5pv210_spi_port_config,
}, },
{ .compatible = "samsung,exynos4210-spi", { .compatible = "samsung,exynos4210-spi",
.data = (void *)&exynos4_spi_port_config, .data = &exynos4_spi_port_config,
}, },
{ .compatible = "samsung,exynos7-spi", { .compatible = "samsung,exynos7-spi",
.data = (void *)&exynos7_spi_port_config, .data = &exynos7_spi_port_config,
}, },
{ .compatible = "samsung,exynos5433-spi", { .compatible = "samsung,exynos5433-spi",
.data = (void *)&exynos5433_spi_port_config, .data = &exynos5433_spi_port_config,
}, },
{ .compatible = "samsung,exynos850-spi", { .compatible = "samsung,exynos850-spi",
.data = (void *)&exynos850_spi_port_config, .data = &exynos850_spi_port_config,
}, },
{ .compatible = "samsung,exynosautov9-spi", { .compatible = "samsung,exynosautov9-spi",
.data = (void *)&exynosautov9_spi_port_config, .data = &exynosautov9_spi_port_config,
}, },
{ .compatible = "tesla,fsd-spi", { .compatible = "tesla,fsd-spi",
.data = (void *)&fsd_spi_port_config, .data = &fsd_spi_port_config,
}, },
{ }, { },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment