linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure
@ 2017-07-14  9:26 ` Bhumika Goyal
  2017-08-01 12:59   ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-07-14  9:26 UTC (permalink / raw)
  To: julia.lawall, tomi.valkeinen, b.zolnierkie, linux-fbdev,
	linux-omap, linux-kernel
  Cc: Bhumika Goyal

Make lcd_panel structure const as it is only copied to some object.
As the only usage of this structure is a copy operation, so it can be
made const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/video/fbdev/omap/lcd_mipid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/omap/lcd_mipid.c b/drivers/video/fbdev/omap/lcd_mipid.c
index df9e6eb..e3a8543 100644
--- a/drivers/video/fbdev/omap/lcd_mipid.c
+++ b/drivers/video/fbdev/omap/lcd_mipid.c
@@ -496,7 +496,7 @@ static void mipid_cleanup(struct lcd_panel *panel)
 		mipid_esd_stop_check(md);
 }
 
-static struct lcd_panel mipid_panel = {
+static const struct lcd_panel mipid_panel = {
 	.config		= OMAP_LCDC_PANEL_TFT,
 
 	.bpp		= 16,
-- 
1.9.1


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

* Re: [PATCH] drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure
  2017-07-14  9:26 ` [PATCH] drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure Bhumika Goyal
@ 2017-08-01 12:59   ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2017-08-01 12:59 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall, tomi.valkeinen, linux-fbdev, linux-omap,
	linux-kernel

On Friday, July 14, 2017 02:44:06 PM Bhumika Goyal wrote:
> Make lcd_panel structure const as it is only copied to some object.
> As the only usage of this structure is a copy operation, so it can be
> made const.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>

Patch queued for 4.14, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics


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

end of thread, other threads:[~2017-08-01 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20170714091425epcas3p330b5342b7aba66540b83256d401b7055@epcas3p3.samsung.com>
2017-07-14  9:26 ` [PATCH] drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure Bhumika Goyal
2017-08-01 12:59   ` Bartlomiej Zolnierkiewicz

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).