From: Bhumika Goyal Date: Tue, 1 Aug 2017 15:20:39 +0000 (+0200) Subject: drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a86d8d67989d1b89ff396be2c0f7f8be2524d38a;p=openwrt%2Fstaging%2Fblogic.git drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure 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 Cc: Julia Lawall Cc: Tomi Valkeinen Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/omap/lcd_mipid.c b/drivers/video/fbdev/omap/lcd_mipid.c index df9e6ebcfad5..e3a85432f926 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,