spi: cadence: Make of_device_id array const
PATCH 1/3 spi: cadence: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
--- drivers/spi/spi-cadence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-cadence.c +1 -1
@@ -647,7 +647,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(cdns_spi_dev_pm_ops, cdns_spi_suspend, cdns_spi_resume); -static struct of_device_id cdns_spi_of_match[] = { +static const struct of_device_id cdns_spi_of_match[] = { { .compatible ="xlnx,zynq-spi-r1p6" }, { .compatible ="cdns,spi-r1p6" }, {/* end of table */ }
Signature · 7 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 001e01cf7f23$946c4460$bd44cd20$%[email protected]
PATCH 2/3 spi: fsl-spi: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
--- drivers/spi/spi-fsl-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-fsl-spi.c +1 -1
@@ -58,7 +58,7 @@ static struct fsl_spi_match_data of_fsl_spi_grlib_config = { .type = TYPE_GRLIB, }; -static struct of_device_id of_fsl_spi_match[] = { +static const struct of_device_id of_fsl_spi_match[] = { { .compatible ="fsl,spi" , .data = &of_fsl_spi_fsl_config,
Signature · 7 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/3 spi: sh-hspi: Make of_device_id array const
In reply to a message not in the archiveMake of_device_id array const, because all OF functions handle it as const.
--- drivers/spi/spi-sh-hspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-sh-hspi.c +1 -1
@@ -304,7 +304,7 @@ static int hspi_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id hspi_of_match[] = { +static const struct of_device_id hspi_of_match[] = { { .compatible ="renesas,hspi" , }, {/* sentinel */ } };
Signature · 7 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 002001cf7f24$0b0b64c0$21222e40$%[email protected]
Geert Uytterhoeven
Acked-byRe: [PATCH 3/3] spi: sh-hspi: Make of_device_id array const
Quoted 4 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Kuninori Morimoto
Acked-byRe: [PATCH 3/3] spi: sh-hspi: Make of_device_id array const
In reply to a message not in the archiveHi
Quoted 5 lines
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>---
Quoted 20 lines
drivers/spi/spi-sh-hspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-sh-hspi.c +1
-1@@ -304,7 +304,7 @@ static int hspi_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id hspi_of_match[] = { +static const struct of_device_id hspi_of_match[] = { { .compatible ="renesas,hspi" , }, {/* sentinel */ } };Signature · 1 line
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Harini Katakam
Acked-byQuoted 4 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>
Regards,
Harini
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 2 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.
Applied all, thanks.