]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i.MX video: struct fb_videomode can be const
authorEric Nelson <eric.nelson@boundarydevices.com>
Wed, 3 Oct 2012 07:27:38 +0000 (07:27 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 16 Oct 2012 10:35:11 +0000 (12:35 +0200)
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
drivers/video/mxc_ipuv3_fb.c
include/ipu_pixfmt.h

index 47b336e7aa4fb7de28996b4921779162a42f3f27..ace226cececfa72a1202d24a67e49ed8e7507156 100644 (file)
@@ -45,7 +45,7 @@ static int mxcfb_unmap_video_memory(struct fb_info *fbi);
 
 /* graphics setup */
 static GraphicDevice panel;
-static struct fb_videomode *gmode;
+static struct fb_videomode const *gmode;
 static uint8_t gdisp;
 static uint32_t gpixfmt;
 
@@ -503,7 +503,7 @@ static struct fb_info *mxcfb_init_fbinfo(void)
  * @return      Appropriate error code to the kernel common code
  */
 static int mxcfb_probe(u32 interface_pix_fmt, uint8_t disp,
-                       struct fb_videomode *mode)
+                       struct fb_videomode const *mode)
 {
        struct fb_info *fbi;
        struct mxcfb_info *mxcfbi;
@@ -619,7 +619,9 @@ void video_set_lut(unsigned int index, /* color number */
        return;
 }
 
-int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt)
+int ipuv3_fb_init(struct fb_videomode const *mode,
+                 uint8_t disp,
+                 uint32_t pixfmt)
 {
        gmode = mode;
        gdisp = disp;
index 4baa71187d9c1febd18980cbbc50d069ebb0b224..1163bf4b4e3e0b06fbe0cf3d88a951847c82dd38 100644 (file)
@@ -76,7 +76,9 @@
 #define IPU_PIX_FMT_YVU422P fourcc('Y', 'V', '1', '6') /*< 16 YVU 4:2:2 */
 #define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P') /*< 16 YUV 4:2:2 */
 
-int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt);
+int ipuv3_fb_init(struct fb_videomode const *mode,
+                 uint8_t disp,
+                 uint32_t pixfmt);
 void ipuv3_fb_shutdown(void);
 
 #endif