linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: fbdev: make of_device_id array const
@ 2015-02-09 11:02 Sanjeev Sharma
  2015-02-09 12:14 ` Uwe Kleine-König
  2015-02-20 12:16 ` Tomi Valkeinen
  0 siblings, 2 replies; 3+ messages in thread
From: Sanjeev Sharma @ 2015-02-09 11:02 UTC (permalink / raw)
  To: kernel, plagnioj
  Cc: tomi.valkeinen, linux-fbdev, linux-arm-kernel, linux-kernel,
	Sanjeev Sharma, Sanjeev Sharma

Make of_device_id array const.

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

diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c
index 3b6a3c8..84d1d29 100644
--- a/drivers/video/fbdev/imxfb.c
+++ b/drivers/video/fbdev/imxfb.c
@@ -183,7 +183,7 @@ static struct platform_device_id imxfb_devtype[] = {
 };
 MODULE_DEVICE_TABLE(platform, imxfb_devtype);
 
-static struct of_device_id imxfb_of_dev_id[] = {
+static const struct of_device_id imxfb_of_dev_id[] = {
 	{
 		.compatible = "fsl,imx1-fb",
 		.data = &imxfb_devtype[IMX1_FB],
-- 
1.7.11.7


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

* Re: [PATCH] video: fbdev: make of_device_id array const
  2015-02-09 11:02 [PATCH] video: fbdev: make of_device_id array const Sanjeev Sharma
@ 2015-02-09 12:14 ` Uwe Kleine-König
  2015-02-20 12:16 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2015-02-09 12:14 UTC (permalink / raw)
  To: Sanjeev Sharma
  Cc: kernel, plagnioj, linux-fbdev, tomi.valkeinen, linux-kernel,
	linux-arm-kernel

On Mon, Feb 09, 2015 at 04:32:27PM +0530, Sanjeev Sharma wrote:
> Make of_device_id array const.
> 
> Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

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

* Re: [PATCH] video: fbdev: make of_device_id array const
  2015-02-09 11:02 [PATCH] video: fbdev: make of_device_id array const Sanjeev Sharma
  2015-02-09 12:14 ` Uwe Kleine-König
@ 2015-02-20 12:16 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2015-02-20 12:16 UTC (permalink / raw)
  To: Sanjeev Sharma, kernel, plagnioj
  Cc: linux-fbdev, linux-arm-kernel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

On 09/02/15 13:02, Sanjeev Sharma wrote:
> Make of_device_id array const.
> 
> Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
> ---
>  drivers/video/fbdev/imxfb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c
> index 3b6a3c8..84d1d29 100644
> --- a/drivers/video/fbdev/imxfb.c
> +++ b/drivers/video/fbdev/imxfb.c
> @@ -183,7 +183,7 @@ static struct platform_device_id imxfb_devtype[] = {
>  };
>  MODULE_DEVICE_TABLE(platform, imxfb_devtype);
>  
> -static struct of_device_id imxfb_of_dev_id[] = {
> +static const struct of_device_id imxfb_of_dev_id[] = {
>  	{
>  		.compatible = "fsl,imx1-fb",
>  		.data = &imxfb_devtype[IMX1_FB],
> 

Thanks, queued for 3.21.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2015-02-20 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 11:02 [PATCH] video: fbdev: make of_device_id array const Sanjeev Sharma
2015-02-09 12:14 ` Uwe Kleine-König
2015-02-20 12:16 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).