]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
exynos: video: Remove use of vidinfo_t typedef
authorSimon Glass <sjg@chromium.org>
Mon, 22 Feb 2016 04:08:40 +0000 (21:08 -0700)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 25 May 2016 04:25:17 +0000 (13:25 +0900)
Use 'struct vidinfo' instead so that we can change this to a struct with a
different name in future.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/mach-exynos/include/mach/mipi_dsim.h
drivers/video/exynos/exynos_fb.c
drivers/video/exynos/exynos_fimd.c
drivers/video/exynos/exynos_mipi_dsi_common.c

index c9e8e067d741dc7fc9203d77cac3139f189f449e..a77b5c8b1c4180c97116f5a13f90d2fe02783455 100644 (file)
@@ -369,7 +369,8 @@ int exynos_mipi_dsi_register_lcd_device(struct mipi_dsim_lcd_device
                                                *lcd_dev);
 
 void exynos_set_dsim_platform_data(struct exynos_platform_mipi_dsim *pd);
-void exynos_init_dsim_platform_data(vidinfo_t *vid);
+struct vidinfo;
+void exynos_init_dsim_platform_data(struct vidinfo *vid);
 
 /* panel driver init based on mipi dsi interface */
 void s6e8ax0_init(void);
index 39e3adeceaa9c7b4b6db890d024d3e0b15d90180..90d203822f82236ab98cb48361198f577dcded4d 100644 (file)
@@ -28,7 +28,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static unsigned int panel_width, panel_height;
 
-vidinfo_t panel_info  = {
+struct vidinfo panel_info  = {
        /*
         * Insert a value here so that we don't end up in the BSS
         * Reference: drivers/video/tegra.c
@@ -45,7 +45,7 @@ ushort *configuration_get_cmap(void)
 #endif
 }
 
-static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid)
+static void exynos_lcd_init_mem(void *lcdbase, struct vidinfo *vid)
 {
        unsigned long palette_size;
        unsigned int fb_size;
@@ -58,7 +58,7 @@ static void exynos_lcd_init_mem(void *lcdbase, vidinfo_t *vid)
                        (unsigned long)fb_size, palette_size);
 }
 
-static void exynos_lcd_init(vidinfo_t *vid)
+static void exynos_lcd_init(struct vidinfo *vid)
 {
        exynos_fimd_lcd_init(vid);
 
@@ -94,12 +94,12 @@ __weak void exynos_backlight_reset(void)
 {
 }
 
-__weak int exynos_lcd_misc_init(vidinfo_t *vid)
+__weak int exynos_lcd_misc_init(struct vidinfo *vid)
 {
        return 0;
 }
 
-static void lcd_panel_on(vidinfo_t *vid)
+static void lcd_panel_on(struct vidinfo *vid)
 {
        struct gpio_desc pwm_out_gpio;
        struct gpio_desc bl_en_gpio;
index 019d88f990a6ab895586bfab453e5c91bc07ff67..e6fb5d1b20561266626ef9b4f5c4391087107944 100644 (file)
@@ -22,7 +22,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 static unsigned long *lcd_base_addr;
-static vidinfo_t *pvid;
+static struct vidinfo *pvid;
 static struct exynos_fb *fimd_ctrl;
 
 void exynos_fimd_lcd_init_mem(u_long screen_base, u_long fb_size,
@@ -123,7 +123,7 @@ static void exynos_fimd_set_buffer_address(unsigned int win_id)
                        EXYNOS_BUFFER_OFFSET(win_id));
 }
 
-static void exynos_fimd_set_clock(vidinfo_t *pvid)
+static void exynos_fimd_set_clock(struct vidinfo *pvid)
 {
        unsigned int cfg = 0, div = 0, remainder, remainder_div;
        unsigned long pixel_clock;
@@ -289,7 +289,7 @@ void exynos_fimd_disable_sysmmu(void)
        }
 }
 
-void exynos_fimd_lcd_init(vidinfo_t *vid)
+void exynos_fimd_lcd_init(struct vidinfo *vid)
 {
        unsigned int cfg = 0, rgb_mode;
        unsigned int offset;
index 925d51500a5a500e948f0e45be97a0e820d35909..85c5e0de933198bf06a07c416e4edcd68a7b85d0 100644 (file)
@@ -465,7 +465,7 @@ int exynos_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim,
 }
 
 static void convert_to_fb_videomode(struct fb_videomode *mode1,
-                               vidinfo_t *mode2)
+                                   struct vidinfo *mode2)
 {
        mode1->xres = mode2->vl_width;
        mode1->yres = mode2->vl_height;
@@ -482,10 +482,10 @@ int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
 {
        struct exynos_platform_mipi_dsim *dsim_pd;
        struct fb_videomode lcd_video;
-       vidinfo_t *vid;
+       struct vidinfo *vid;
 
        dsim_pd = (struct exynos_platform_mipi_dsim *)dsim->pd;
-       vid = (vidinfo_t *)dsim_pd->lcd_panel_info;
+       vid = (struct vidinfo *)dsim_pd->lcd_panel_info;
 
        convert_to_fb_videomode(&lcd_video, vid);