autotst: remove build warnings 70/158670/1 accepted/tizen/unified/20171106.073145 submit/tizen/20171106.023205
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 2 Nov 2017 09:56:30 +0000 (18:56 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 2 Nov 2017 09:56:40 +0000 (18:56 +0900)
Remove build warnings including unused variable, redefined macro and
assignment from inger without a cast.

Change-Id: I7faf4ef345244be3f7aa626163de079fb0b2a840
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/autotst/autotstdrv.c
drivers/autotst/dispc.c
drivers/autotst/dsi.c

index fd81fc8..641f71f 100644 (file)
@@ -334,7 +334,6 @@ static long autotst_ioctl( struct file *filp, unsigned int cmd, unsigned long ar
 #if 1
         case AUTOTST_IOCTL_LCD_MIPI_ON:
         {
-                int i;
                 DBG_INFO("lcd mipi on\n");
                 autotst_dispc_init(DISPLAY_TYPE_MIPI);
                 autotst_dispc_refresh();
@@ -343,7 +342,6 @@ static long autotst_ioctl( struct file *filp, unsigned int cmd, unsigned long ar
         break;
         case AUTOTST_IOCTL_LCD_MIPI_OFF:
         {
-                int i;
                 DBG_INFO("lcd mipi off\n");
                 autotst_dispc_uninit(DISPLAY_TYPE_MIPI);
                   ret = 0;
index 7f3281c..17974cd 100644 (file)
@@ -28,8 +28,6 @@
 #include "lcd_dummy.h"
 #include "dispc.h"
 
-#define pr_debug printk
-
 #ifdef CONFIG_FB_SCX15
 #define DISPC_CLOCK_PARENT ("clk_192m")
 #define DISPC_CLOCK (192*1000000)
@@ -984,7 +982,7 @@ static int dispc_fb_prepare(struct panel_spec *panel)
        autotst_dispc_ctx.fb_addr_p = __pa(autotst_dispc_ctx.fb_addr_v);
        autotst_dispc_ctx.fb_size = fb_size;
 
-       p_pixel = autotst_dispc_ctx.fb_addr_v;
+       p_pixel = (uint32_t *)autotst_dispc_ctx.fb_addr_v;
        draw_patten(p_pixel, panel->width, panel->height, PATTEN_GRID_WIDTH, PATTEN_GRID_HEIGHT);
 
        return 0;
index 8e85e8b..bb42946 100644 (file)
@@ -33,8 +33,6 @@
 #include "mipi_dsih_hal.h"
 #include "mipi_dsih_api.h"
 
-#define pr_debug printk
-
 #define DSI_PHY_REF_CLOCK (26*1000)
 #define DSI_EDPI_CFG (0x6c)
 
@@ -212,7 +210,9 @@ static void dsi_log_error(const char * string)
 
 static int32_t dsi_module_init(struct panel_spec *panel)
 {
+#if 0
        int ret = 0;
+#endif
        dsih_ctrl_t* dsi_instance = &(autotst_dsi_ctx.dsi_inst);
        dphy_t *phy = &(dsi_instance->phy_instance);
        struct info_mipi * mipi = panel->info.mipi;