# \[PATCH\] video: fbdev: make of\_device\_id array const

- Subsystems: FRAMEBUFFER LAYER, FREESCALE IMX / MXC FRAMEBUFFER DRIVER, THE REST
- Maintainers: Helge Deller, Sascha Hauer, Linus Torvalds
- List: linux-fbdev
- 3 messages, 3 authors
- Page: https://ratatoskr.run/linux-fbdev/2015/02/4428169/t

## \[PATCH\] video: fbdev: make of\_device\_id array const

- From: Sanjeev Sharma \<hidden\>
- Date: 2015-02-09 11:02:51 
- Message: https://ratatoskr.run/linux-fbdev/2015/02/4428169.md

```text
Make of_device_id array const.

Signed-off-by: Sanjeev Sharma <redacted>
---
 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

```

## Re: \[PATCH\] video: fbdev: make of\_device\_id array const

- From: Uwe Kleine-König \<hidden\>
- Date: 2015-02-09 12:14:59 
- Message: https://ratatoskr.run/linux-fbdev/2015/02/4428202.md

```text
On Mon, Feb 09, 2015 at 04:32:27PM +0530, Sanjeev Sharma wrote:
> Make of_device_id array const.
> 
> Signed-off-by: Sanjeev Sharma <redacted>
Acked-by: Uwe Kleine-König <redacted>

Uwe

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

## Re: \[PATCH\] video: fbdev: make of\_device\_id array const

- From: Tomi Valkeinen \<hidden\>
- Date: 2015-02-20 12:17:11 
- Message: https://ratatoskr.run/linux-fbdev/2015/02/4434495.md

```text
On 09/02/15 13:02, Sanjeev Sharma wrote:
> Make of_device_id array const.
> 
> Signed-off-by: Sanjeev Sharma <redacted>
> ---
>  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


```
