All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] serial:imx make of_device_id array const
@ 2015-03-02  7:08 ` Sanjeev Sharma
  0 siblings, 0 replies; 5+ messages in thread
From: Sanjeev Sharma @ 2015-03-02  7:08 UTC (permalink / raw)
  To: gregkh; +Cc: jslaby, linux-serial, linux-kernel, Sanjeev Sharma, Sanjeev Sharma

Make of_device_id array const.

Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
---
 drivers/tty/serial/imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 0eb29b1..412bfbf 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -273,7 +273,7 @@ static struct platform_device_id imx_uart_devtype[] = {
 };
 MODULE_DEVICE_TABLE(platform, imx_uart_devtype);
 
-static struct of_device_id imx_uart_dt_ids[] = {
+static const struct of_device_id imx_uart_dt_ids[] = {
 	{ .compatible = "fsl,imx6q-uart", .data = &imx_uart_devdata[IMX6Q_UART], },
 	{ .compatible = "fsl,imx1-uart", .data = &imx_uart_devdata[IMX1_UART], },
 	{ .compatible = "fsl,imx21-uart", .data = &imx_uart_devdata[IMX21_UART], },
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] serial:imx make of_device_id array const
@ 2015-02-03 10:46 ` Sanjeev Sharma
  0 siblings, 0 replies; 5+ messages in thread
From: Sanjeev Sharma @ 2015-02-03 10:46 UTC (permalink / raw)
  To: gregkh; +Cc: jslaby, linux-serial, linux-kernel, Sanjeev Sharma, Sanjeev Sharma

Make of_device_id array const.

Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
---
 drivers/tty/serial/imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 0eb29b1..412bfbf 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -273,7 +273,7 @@ static struct platform_device_id imx_uart_devtype[] = {
 };
 MODULE_DEVICE_TABLE(platform, imx_uart_devtype);
 
-static struct of_device_id imx_uart_dt_ids[] = {
+static const struct of_device_id imx_uart_dt_ids[] = {
 	{ .compatible = "fsl,imx6q-uart", .data = &imx_uart_devdata[IMX6Q_UART], },
 	{ .compatible = "fsl,imx1-uart", .data = &imx_uart_devdata[IMX1_UART], },
 	{ .compatible = "fsl,imx21-uart", .data = &imx_uart_devdata[IMX21_UART], },
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-07 12:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02  7:08 [PATCH] serial:imx make of_device_id array const Sanjeev Sharma
2015-03-02  7:08 ` Sanjeev Sharma
2015-03-07  2:51 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2015-02-03 10:46 Sanjeev Sharma
2015-02-03 10:46 ` Sanjeev Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.