diff mbox

[1/3] spi: cadence: Make of_device_id array const

Message ID 001e01cf7f23$946c4460$bd44cd20$%han@samsung.com (mailing list archive)
State Accepted
Commit f7f994a4c5f776823b527db5a9d86f27df573e76
Headers show

Commit Message

Jingoo Han June 3, 2014, 12:01 p.m. UTC
Make of_device_id array const, because all OF functions handle
it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/spi/spi-cadence.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Harini Katakam June 4, 2014, 4:53 a.m. UTC | #1
On Tue, Jun 3, 2014 at 5:31 PM, Jingoo Han <jg1.han@samsung.com> wrote:
> Make of_device_id array const, because all OF functions handle
> it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Harini Katakam <harinik@xilinx.com>

Regards,
Harini
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mark Brown June 6, 2014, 11:38 a.m. UTC | #2
On Tue, Jun 03, 2014 at 09:01:40PM +0900, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions handle
> it as const.

Applied all, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index bb75897..98b763b 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -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 */ }