diff mbox

[4/6] spi: tegra114: Make of_device_id array const

Message ID 01de01cf69c9$179aaef0$46d00cd0$%han@samsung.com (mailing list archive)
State Accepted
Commit 0ac83f396d90a275316be0d67932d56b298792f1
Headers show

Commit Message

Jingoo Han May 7, 2014, 7:51 a.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-tegra114.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laxman Dewangan May 7, 2014, 8:19 a.m. UTC | #1
On Wednesday 07 May 2014 01:21 PM, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
>
For 4, 5 and 6 of this series,

Acked-by: Laxman Dewangan <ldewangan@nvidia.com>

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
--
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
diff mbox

Patch

diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c
index 4006495..e4a85ad 100644
--- a/drivers/spi/spi-tegra114.c
+++ b/drivers/spi/spi-tegra114.c
@@ -1012,7 +1012,7 @@  static irqreturn_t tegra_spi_isr(int irq, void *context_data)
 	return IRQ_WAKE_THREAD;
 }
 
-static struct of_device_id tegra_spi_of_match[] = {
+static const struct of_device_id tegra_spi_of_match[] = {
 	{ .compatible = "nvidia,tegra114-spi", },
 	{}
 };