diff for duplicates of <20111116005516.GA17850@july> diff --git a/a/1.txt b/N1/1.txt index ffb9e43..bee46c9 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -272,8 +272,8 @@ index 0000000..09a4af8 + continue; + + if (lcd_drv->id >= 0) { -+ if ((strcmp(lcd_drv->name, lcd_dev->name)) = 0 && -+ lcd_drv->id = lcd_dev->id) { ++ if ((strcmp(lcd_drv->name, lcd_dev->name)) == 0 && ++ lcd_drv->id == lcd_dev->id) { + /** + * bus_id would be used to identify + * connected bus. @@ -284,7 +284,7 @@ index 0000000..09a4af8 + return dsim_ddi; + } + } else { -+ if ((strcmp(lcd_drv->name, lcd_dev->name)) = 0) { ++ if ((strcmp(lcd_drv->name, lcd_dev->name)) == 0) { + /** + * bus_id would be used to identify + * connected bus. @@ -358,7 +358,7 @@ index 0000000..09a4af8 + dev_dbg(dsim->dev, "lcd_dev->bus_id = %d, dsim->id = %d\n", + lcd_dev->bus_id, dsim->id); + -+ if ((strcmp(lcd_drv->name, name) = 0)) { ++ if ((strcmp(lcd_drv->name, name) == 0)) { + lcd_dev->master = dsim; + + lcd_dev->dev.parent = dsim->dev; @@ -419,13 +419,13 @@ index 0000000..09a4af8 + + /* get mipi_dsim_platform_data. */ + dsim_pd = (struct mipi_dsim_platform_data *)dsim->pd; -+ if (dsim_pd = NULL) { ++ if (dsim_pd == NULL) { + dev_err(&pdev->dev, "failed to get platform data for dsim.\n"); + return -EFAULT; + } + /* get mipi_dsim_config. */ + dsim_config = dsim_pd->dsim_config; -+ if (dsim_config = NULL) { ++ if (dsim_config == NULL) { + dev_err(&pdev->dev, "failed to get dsim config data.\n"); + return -EFAULT; + } @@ -521,7 +521,7 @@ index 0000000..09a4af8 + platform_set_drvdata(pdev, dsim); + + dev_dbg(&pdev->dev, "mipi-dsi driver(%s mode) has been probed.\n", -+ (dsim_config->e_interface = DSIM_COMMAND) ? ++ (dsim_config->e_interface == DSIM_COMMAND) ? + "CPU" : "RGB"); + + return 0; @@ -830,7 +830,7 @@ index 0000000..f3452b2 + * send remainder data less then 4. + */ + if ((data1 - data_cnt) < 4) { -+ if ((data1 - data_cnt) = 3) { ++ if ((data1 - data_cnt) == 3) { + payload = *(u8 *)(data0 + data_cnt) | + (*(u8 *)(data0 + (data_cnt + 1))) << 8 | + (*(u8 *)(data0 + (data_cnt + 2))) << 16; @@ -838,14 +838,14 @@ index 0000000..f3452b2 + payload, *(u8 *)(data0 + data_cnt), + *(u8 *)(data0 + (data_cnt + 1)), + *(u8 *)(data0 + (data_cnt + 2))); -+ } else if ((data1 - data_cnt) = 2) { ++ } else if ((data1 - data_cnt) == 2) { + payload = *(u8 *)(data0 + data_cnt) | + (*(u8 *)(data0 + (data_cnt + 1))) << 8; + dev_dbg(dsim->dev, + "count = 2 payload = %x, %x %x\n", payload, + *(u8 *)(data0 + data_cnt), + *(u8 *)(data0 + (data_cnt + 1))); -+ } else if ((data1 - data_cnt) = 1) { ++ } else if ((data1 - data_cnt) == 1) { + payload = *(u8 *)(data0 + data_cnt); + } + @@ -876,7 +876,7 @@ index 0000000..f3452b2 + unsigned long delay_val, udelay; + unsigned int check_rx_ack = 0; + -+ if (dsim->state = DSIM_STATE_ULPS) { ++ if (dsim->state == DSIM_STATE_ULPS) { + dev_err(dsim->dev, "state is ULPS.\n"); + + return -EINVAL; @@ -888,7 +888,7 @@ index 0000000..f3452b2 + mdelay(udelay); + + /* only if transfer mode is LPDT, wait SFR becomes empty. */ -+ if (dsim->state = DSIM_STATE_STOP) { ++ if (dsim->state == DSIM_STATE_STOP) { + while (!(s5p_mipi_dsi_get_fifo_state(dsim) & + SFR_HEADER_EMPTY)) { + if ((timeout--) > 0) @@ -1027,7 +1027,8 @@ index 0000000..f3452b2 + rcv_pkt = s5p_mipi_dsi_rd_rx_fifo(dsim); + dev_dbg(dsim->dev, "received pkt : %08x\n", rcv_pkt); + for (j = 0; j < 4; j++) { -+ rx_buf[(i * 4) + j] + (u8)(rcv_pkt >> (j * 8)) & 0xff; ++ rx_buf[(i * 4) + j] = ++ (u8)(rcv_pkt >> (j * 8)) & 0xff; + dev_dbg(dsim->dev, "received value : %02x\n", + (rcv_pkt >> (j * 8)) & 0xff); + } @@ -1036,7 +1037,8 @@ index 0000000..f3452b2 + rcv_pkt = s5p_mipi_dsi_rd_rx_fifo(dsim); + dev_dbg(dsim->dev, "received pkt : %08x\n", rcv_pkt); + for (j = 0; j < (rxsize % 4); j++) { -+ rx_buf[(i * 4) + j] + (u8)(rcv_pkt >> (j * 8)) & 0xff; ++ rx_buf[(i * 4) + j] = ++ (u8)(rcv_pkt >> (j * 8)) & 0xff; + dev_dbg(dsim->dev, "received value : %02x\n", + (rcv_pkt >> (j * 8)) & 0xff); + } @@ -1075,7 +1077,7 @@ index 0000000..f3452b2 + u8 response = 0; + u16 rxsize; + -+ if (dsim->state = DSIM_STATE_ULPS) { ++ if (dsim->state == DSIM_STATE_ULPS) { + dev_err(dsim->dev, "state is ULPS.\n"); + + return -EINVAL; @@ -1087,7 +1089,7 @@ index 0000000..f3452b2 + msleep(udelay); + + /* only if transfer mode is LPDT, wait SFR becomes empty. */ -+ if (dsim->state = DSIM_STATE_STOP) { ++ if (dsim->state == DSIM_STATE_STOP) { + while (!(s5p_mipi_dsi_get_fifo_state(dsim) & + SFR_HEADER_EMPTY)) { + if ((timeout--) > 0) @@ -1176,7 +1178,7 @@ index 0000000..f3452b2 + i = 0; + while (1) { + rcv_pkt = s5p_mipi_dsi_rd_rx_fifo(dsim); -+ if ((rcv_pkt = MIPI_RX_FIFO_READ_DONE) ++ if ((rcv_pkt == MIPI_RX_FIFO_READ_DONE) + || (i > MIPI_MAX_RX_FIFO)) + break; + dev_dbg(dsim->dev, @@ -1204,7 +1206,7 @@ index 0000000..f3452b2 + sw_timeout--; + if (s5p_mipi_dsi_is_pll_stable(dsim)) + return 0; -+ if (sw_timeout = 0) ++ if (sw_timeout == 0) + return -EINVAL; + } + } else @@ -1311,11 +1313,11 @@ index 0000000..f3452b2 + s5p_mipi_dsi_set_byte_clock_src(dsim, byte_clk_sel); + + /* DPHY, DSIM Link : D-PHY clock out */ -+ if (byte_clk_sel = DSIM_PLL_OUT_DIV8) { ++ if (byte_clk_sel == DSIM_PLL_OUT_DIV8) { + hs_clk = s5p_mipi_dsi_change_pll(dsim, + dsim->dsim_config->p, dsim->dsim_config->m, + dsim->dsim_config->s); -+ if (hs_clk = 0) { ++ if (hs_clk == 0) { + dev_err(dsim->dev, + "failed to get hs clock.\n"); + return -EINVAL; @@ -1325,11 +1327,11 @@ index 0000000..f3452b2 + s5p_mipi_dsi_enable_pll_bypass(dsim, 0); + s5p_mipi_dsi_pll_on(dsim, 1); + /* DPHY : D-PHY clock out, DSIM link : external clock out */ -+ } else if (byte_clk_sel = DSIM_EXT_CLK_DIV8) { ++ } else if (byte_clk_sel == DSIM_EXT_CLK_DIV8) { + dev_warn(dsim->dev, "this project is not support\n"); + dev_warn(dsim->dev, + "external clock source for MIPI DSIM.\n"); -+ } else if (byte_clk_sel = DSIM_EXT_CLK_BYPASS) { ++ } else if (byte_clk_sel == DSIM_EXT_CLK_BYPASS) { + dev_warn(dsim->dev, "this project is not support\n"); + dev_warn(dsim->dev, + "external clock source for MIPI DSIM\n"); @@ -1386,7 +1388,7 @@ index 0000000..f3452b2 + /* disable escape clock. */ + s5p_mipi_dsi_enable_byte_clock(dsim, 0); + -+ if (byte_clk_sel = DSIM_PLL_OUT_DIV8) ++ if (byte_clk_sel == DSIM_PLL_OUT_DIV8) + s5p_mipi_dsi_pll_on(dsim, 0); + } + @@ -1470,8 +1472,8 @@ index 0000000..f3452b2 + timing = (struct fb_videomode *)dsim_pd->lcd_panel_info; + + /* in case of VIDEO MODE (RGB INTERFACE), it sets polarities. */ -+ if (dsim_config->e_interface = (u32) DSIM_VIDEO) { -+ if (dsim_config->auto_vertical_cnt = 0) { ++ if (dsim_config->e_interface == (u32) DSIM_VIDEO) { ++ if (dsim_config->auto_vertical_cnt == 0) { + s5p_mipi_dsi_set_main_disp_vporch(dsim, + dsim_config->cmd_allow, + timing->upper_margin, @@ -1490,7 +1492,7 @@ index 0000000..f3452b2 + + s5p_mipi_dsi_display_config(dsim, dsim_config); + -+ dev_info(dsim->dev, "lcd panel => width = %d, height = %d\n", ++ dev_info(dsim->dev, "lcd panel ==> width = %d, height = %d\n", + timing->xres, timing->yres); + + return 0; @@ -1515,7 +1517,7 @@ index 0000000..f3452b2 + /* check clock and data lane state are stop state */ + while (!(s5p_mipi_dsi_is_lane_state(dsim))) { + time_out--; -+ if (time_out = 0) { ++ if (time_out == 0) { + dev_err(dsim->dev, + "DSI Master is not stop state.\n"); + dev_err(dsim->dev, @@ -1551,7 +1553,7 @@ index 0000000..f3452b2 + +int s5p_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim) +{ -+ if (dsim->state = DSIM_STATE_STOP) { ++ if (dsim->state == DSIM_STATE_STOP) { + if (dsim->e_clk_src != DSIM_EXT_CLK_BYPASS) { + dsim->state = DSIM_STATE_HSCLKEN; + @@ -1582,7 +1584,7 @@ index 0000000..f3452b2 + + s5p_mipi_dsi_set_lcdc_transfer_mode(dsim, 0); + } else { -+ if (dsim->state = DSIM_STATE_INIT || dsim->state = ++ if (dsim->state == DSIM_STATE_INIT || dsim->state == + DSIM_STATE_ULPS) { + dev_err(dsim->dev, + "DSI Master is not STOP or HSDT state.\n"); @@ -1888,9 +1890,9 @@ index 0000000..e6a9358 + ~((0x3 << 26) | (1 << 25) | (0x3 << 18) | (0x7 << 12) | + (0x3 << 16) | (0x7 << 8)); + -+ if (dsim_config->e_interface = DSIM_VIDEO) ++ if (dsim_config->e_interface == DSIM_VIDEO) + reg |= (1 << 25); -+ else if (dsim_config->e_interface = DSIM_COMMAND) ++ else if (dsim_config->e_interface == DSIM_COMMAND) + reg &= ~(1 << 25); + else { + dev_err(dsim->dev, "unknown lcd type.\n"); @@ -2709,7 +2711,8 @@ index 0000000..82807f2 + enum mipi_dsim_byte_clk_src e_byte_clk; + + /* -+ * =====================+ * | P | M | S | MHz | ++ * =========================================== ++ * | P | M | S | MHz | + * ------------------------------------------- + * | 3 | 100 | 3 | 100 | + * | 3 | 100 | 2 | 200 | diff --git a/a/content_digest b/N1/content_digest index 2eab181..71c366c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ - "From\0Kyungmin Park <kmpark@infradead.org>\0" + "From\0kmpark@infradead.org (Kyungmin Park)\0" "Subject\0[PATCH v2] video: support MIPI-DSI controller driver\0" - "Date\0Wed, 16 Nov 2011 00:55:16 +0000\0" + "Date\0Wed, 16 Nov 2011 09:55:16 +0900\0" "To\0linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" @@ -278,8 +278,8 @@ "+\t\t\tcontinue;\n" "+\n" "+\t\tif (lcd_drv->id >= 0) {\n" - "+\t\t\tif ((strcmp(lcd_drv->name, lcd_dev->name)) = 0 &&\n" - "+\t\t\t\t\tlcd_drv->id = lcd_dev->id) {\n" + "+\t\t\tif ((strcmp(lcd_drv->name, lcd_dev->name)) == 0 &&\n" + "+\t\t\t\t\tlcd_drv->id == lcd_dev->id) {\n" "+\t\t\t\t/**\n" "+\t\t\t\t * bus_id would be used to identify\n" "+\t\t\t\t * connected bus.\n" @@ -290,7 +290,7 @@ "+\t\t\t\treturn dsim_ddi;\n" "+\t\t\t}\n" "+\t\t} else {\n" - "+\t\t\tif ((strcmp(lcd_drv->name, lcd_dev->name)) = 0) {\n" + "+\t\t\tif ((strcmp(lcd_drv->name, lcd_dev->name)) == 0) {\n" "+\t\t\t\t/**\n" "+\t\t\t\t * bus_id would be used to identify\n" "+\t\t\t\t * connected bus.\n" @@ -364,7 +364,7 @@ "+\t\tdev_dbg(dsim->dev, \"lcd_dev->bus_id = %d, dsim->id = %d\\n\",\n" "+\t\t\t\tlcd_dev->bus_id, dsim->id);\n" "+\n" - "+\t\tif ((strcmp(lcd_drv->name, name) = 0)) {\n" + "+\t\tif ((strcmp(lcd_drv->name, name) == 0)) {\n" "+\t\t\tlcd_dev->master = dsim;\n" "+\n" "+\t\t\tlcd_dev->dev.parent = dsim->dev;\n" @@ -425,13 +425,13 @@ "+\n" "+\t/* get mipi_dsim_platform_data. */\n" "+\tdsim_pd = (struct mipi_dsim_platform_data *)dsim->pd;\n" - "+\tif (dsim_pd = NULL) {\n" + "+\tif (dsim_pd == NULL) {\n" "+\t\tdev_err(&pdev->dev, \"failed to get platform data for dsim.\\n\");\n" "+\t\treturn -EFAULT;\n" "+\t}\n" "+\t/* get mipi_dsim_config. */\n" "+\tdsim_config = dsim_pd->dsim_config;\n" - "+\tif (dsim_config = NULL) {\n" + "+\tif (dsim_config == NULL) {\n" "+\t\tdev_err(&pdev->dev, \"failed to get dsim config data.\\n\");\n" "+\t\treturn -EFAULT;\n" "+\t}\n" @@ -527,7 +527,7 @@ "+\tplatform_set_drvdata(pdev, dsim);\n" "+\n" "+\tdev_dbg(&pdev->dev, \"mipi-dsi driver(%s mode) has been probed.\\n\",\n" - "+\t\t(dsim_config->e_interface = DSIM_COMMAND) ?\n" + "+\t\t(dsim_config->e_interface == DSIM_COMMAND) ?\n" "+\t\t\t\"CPU\" : \"RGB\");\n" "+\n" "+\treturn 0;\n" @@ -836,7 +836,7 @@ "+\t\t * send remainder data less then 4.\n" "+\t\t */\n" "+\t\tif ((data1 - data_cnt) < 4) {\n" - "+\t\t\tif ((data1 - data_cnt) = 3) {\n" + "+\t\t\tif ((data1 - data_cnt) == 3) {\n" "+\t\t\t\tpayload = *(u8 *)(data0 + data_cnt) |\n" "+\t\t\t\t (*(u8 *)(data0 + (data_cnt + 1))) << 8 |\n" "+\t\t\t\t\t(*(u8 *)(data0 + (data_cnt + 2))) << 16;\n" @@ -844,14 +844,14 @@ "+\t\t\t\tpayload, *(u8 *)(data0 + data_cnt),\n" "+\t\t\t\t*(u8 *)(data0 + (data_cnt + 1)),\n" "+\t\t\t\t*(u8 *)(data0 + (data_cnt + 2)));\n" - "+\t\t\t} else if ((data1 - data_cnt) = 2) {\n" + "+\t\t\t} else if ((data1 - data_cnt) == 2) {\n" "+\t\t\t\tpayload = *(u8 *)(data0 + data_cnt) |\n" "+\t\t\t\t\t(*(u8 *)(data0 + (data_cnt + 1))) << 8;\n" "+\t\t\tdev_dbg(dsim->dev,\n" "+\t\t\t\t\"count = 2 payload = %x, %x %x\\n\", payload,\n" "+\t\t\t\t*(u8 *)(data0 + data_cnt),\n" "+\t\t\t\t*(u8 *)(data0 + (data_cnt + 1)));\n" - "+\t\t\t} else if ((data1 - data_cnt) = 1) {\n" + "+\t\t\t} else if ((data1 - data_cnt) == 1) {\n" "+\t\t\t\tpayload = *(u8 *)(data0 + data_cnt);\n" "+\t\t\t}\n" "+\n" @@ -882,7 +882,7 @@ "+\tunsigned long delay_val, udelay;\n" "+\tunsigned int check_rx_ack = 0;\n" "+\n" - "+\tif (dsim->state = DSIM_STATE_ULPS) {\n" + "+\tif (dsim->state == DSIM_STATE_ULPS) {\n" "+\t\tdev_err(dsim->dev, \"state is ULPS.\\n\");\n" "+\n" "+\t\treturn -EINVAL;\n" @@ -894,7 +894,7 @@ "+\tmdelay(udelay);\n" "+\n" "+\t/* only if transfer mode is LPDT, wait SFR becomes empty. */\n" - "+\tif (dsim->state = DSIM_STATE_STOP) {\n" + "+\tif (dsim->state == DSIM_STATE_STOP) {\n" "+\t\twhile (!(s5p_mipi_dsi_get_fifo_state(dsim) &\n" "+\t\t\t\tSFR_HEADER_EMPTY)) {\n" "+\t\t\tif ((timeout--) > 0)\n" @@ -1033,7 +1033,8 @@ "+\t\trcv_pkt = s5p_mipi_dsi_rd_rx_fifo(dsim);\n" "+\t\tdev_dbg(dsim->dev, \"received pkt : %08x\\n\", rcv_pkt);\n" "+\t\tfor (j = 0; j < 4; j++) {\n" - "+\t\t\trx_buf[(i * 4) + j] +\t\t\t\t\t(u8)(rcv_pkt >> (j * 8)) & 0xff;\n" + "+\t\t\trx_buf[(i * 4) + j] =\n" + "+\t\t\t\t\t(u8)(rcv_pkt >> (j * 8)) & 0xff;\n" "+\t\t\tdev_dbg(dsim->dev, \"received value : %02x\\n\",\n" "+\t\t\t\t\t(rcv_pkt >> (j * 8)) & 0xff);\n" "+\t\t}\n" @@ -1042,7 +1043,8 @@ "+\t\trcv_pkt = s5p_mipi_dsi_rd_rx_fifo(dsim);\n" "+\t\tdev_dbg(dsim->dev, \"received pkt : %08x\\n\", rcv_pkt);\n" "+\t\tfor (j = 0; j < (rxsize % 4); j++) {\n" - "+\t\t\trx_buf[(i * 4) + j] +\t\t\t\t\t(u8)(rcv_pkt >> (j * 8)) & 0xff;\n" + "+\t\t\trx_buf[(i * 4) + j] =\n" + "+\t\t\t\t\t(u8)(rcv_pkt >> (j * 8)) & 0xff;\n" "+\t\t\tdev_dbg(dsim->dev, \"received value : %02x\\n\",\n" "+\t\t\t\t\t(rcv_pkt >> (j * 8)) & 0xff);\n" "+\t\t}\n" @@ -1081,7 +1083,7 @@ "+\tu8 response = 0;\n" "+\tu16 rxsize;\n" "+\n" - "+\tif (dsim->state = DSIM_STATE_ULPS) {\n" + "+\tif (dsim->state == DSIM_STATE_ULPS) {\n" "+\t\tdev_err(dsim->dev, \"state is ULPS.\\n\");\n" "+\n" "+\t\treturn -EINVAL;\n" @@ -1093,7 +1095,7 @@ "+\tmsleep(udelay);\n" "+\n" "+\t/* only if transfer mode is LPDT, wait SFR becomes empty. */\n" - "+\tif (dsim->state = DSIM_STATE_STOP) {\n" + "+\tif (dsim->state == DSIM_STATE_STOP) {\n" "+\t\twhile (!(s5p_mipi_dsi_get_fifo_state(dsim) &\n" "+\t\t\t\tSFR_HEADER_EMPTY)) {\n" "+\t\t\tif ((timeout--) > 0)\n" @@ -1182,7 +1184,7 @@ "+\ti = 0;\n" "+\twhile (1) {\n" "+\t\trcv_pkt = s5p_mipi_dsi_rd_rx_fifo(dsim);\n" - "+\t\tif ((rcv_pkt = MIPI_RX_FIFO_READ_DONE)\n" + "+\t\tif ((rcv_pkt == MIPI_RX_FIFO_READ_DONE)\n" "+\t\t\t\t|| (i > MIPI_MAX_RX_FIFO))\n" "+\t\t\tbreak;\n" "+\t\tdev_dbg(dsim->dev,\n" @@ -1210,7 +1212,7 @@ "+\t\t\tsw_timeout--;\n" "+\t\t\tif (s5p_mipi_dsi_is_pll_stable(dsim))\n" "+\t\t\t\treturn 0;\n" - "+\t\t\tif (sw_timeout = 0)\n" + "+\t\t\tif (sw_timeout == 0)\n" "+\t\t\t\treturn -EINVAL;\n" "+\t\t}\n" "+\t} else\n" @@ -1317,11 +1319,11 @@ "+\t\ts5p_mipi_dsi_set_byte_clock_src(dsim, byte_clk_sel);\n" "+\n" "+\t\t/* DPHY, DSIM Link : D-PHY clock out */\n" - "+\t\tif (byte_clk_sel = DSIM_PLL_OUT_DIV8) {\n" + "+\t\tif (byte_clk_sel == DSIM_PLL_OUT_DIV8) {\n" "+\t\t\ths_clk = s5p_mipi_dsi_change_pll(dsim,\n" "+\t\t\t\tdsim->dsim_config->p, dsim->dsim_config->m,\n" "+\t\t\t\tdsim->dsim_config->s);\n" - "+\t\t\tif (hs_clk = 0) {\n" + "+\t\t\tif (hs_clk == 0) {\n" "+\t\t\t\tdev_err(dsim->dev,\n" "+\t\t\t\t\t\"failed to get hs clock.\\n\");\n" "+\t\t\t\treturn -EINVAL;\n" @@ -1331,11 +1333,11 @@ "+\t\t\ts5p_mipi_dsi_enable_pll_bypass(dsim, 0);\n" "+\t\t\ts5p_mipi_dsi_pll_on(dsim, 1);\n" "+\t\t/* DPHY : D-PHY clock out, DSIM link : external clock out */\n" - "+\t\t} else if (byte_clk_sel = DSIM_EXT_CLK_DIV8) {\n" + "+\t\t} else if (byte_clk_sel == DSIM_EXT_CLK_DIV8) {\n" "+\t\t\tdev_warn(dsim->dev, \"this project is not support\\n\");\n" "+\t\t\tdev_warn(dsim->dev,\n" "+\t\t\t\t\"external clock source for MIPI DSIM.\\n\");\n" - "+\t\t} else if (byte_clk_sel = DSIM_EXT_CLK_BYPASS) {\n" + "+\t\t} else if (byte_clk_sel == DSIM_EXT_CLK_BYPASS) {\n" "+\t\t\tdev_warn(dsim->dev, \"this project is not support\\n\");\n" "+\t\t\tdev_warn(dsim->dev,\n" "+\t\t\t\t\"external clock source for MIPI DSIM\\n\");\n" @@ -1392,7 +1394,7 @@ "+\t\t/* disable escape clock. */\n" "+\t\ts5p_mipi_dsi_enable_byte_clock(dsim, 0);\n" "+\n" - "+\t\tif (byte_clk_sel = DSIM_PLL_OUT_DIV8)\n" + "+\t\tif (byte_clk_sel == DSIM_PLL_OUT_DIV8)\n" "+\t\t\ts5p_mipi_dsi_pll_on(dsim, 0);\n" "+\t}\n" "+\n" @@ -1476,8 +1478,8 @@ "+\ttiming = (struct fb_videomode *)dsim_pd->lcd_panel_info;\n" "+\n" "+\t/* in case of VIDEO MODE (RGB INTERFACE), it sets polarities. */\n" - "+\tif (dsim_config->e_interface = (u32) DSIM_VIDEO) {\n" - "+\t\tif (dsim_config->auto_vertical_cnt = 0) {\n" + "+\tif (dsim_config->e_interface == (u32) DSIM_VIDEO) {\n" + "+\t\tif (dsim_config->auto_vertical_cnt == 0) {\n" "+\t\t\ts5p_mipi_dsi_set_main_disp_vporch(dsim,\n" "+\t\t\t\tdsim_config->cmd_allow,\n" "+\t\t\t\ttiming->upper_margin,\n" @@ -1496,7 +1498,7 @@ "+\n" "+\ts5p_mipi_dsi_display_config(dsim, dsim_config);\n" "+\n" - "+\tdev_info(dsim->dev, \"lcd panel => width = %d, height = %d\\n\",\n" + "+\tdev_info(dsim->dev, \"lcd panel ==> width = %d, height = %d\\n\",\n" "+\t\t\ttiming->xres, timing->yres);\n" "+\n" "+\treturn 0;\n" @@ -1521,7 +1523,7 @@ "+\t\t/* check clock and data lane state are stop state */\n" "+\t\twhile (!(s5p_mipi_dsi_is_lane_state(dsim))) {\n" "+\t\t\ttime_out--;\n" - "+\t\t\tif (time_out = 0) {\n" + "+\t\t\tif (time_out == 0) {\n" "+\t\t\t\tdev_err(dsim->dev,\n" "+\t\t\t\t\t\"DSI Master is not stop state.\\n\");\n" "+\t\t\t\tdev_err(dsim->dev,\n" @@ -1557,7 +1559,7 @@ "+\n" "+int s5p_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim)\n" "+{\n" - "+\tif (dsim->state = DSIM_STATE_STOP) {\n" + "+\tif (dsim->state == DSIM_STATE_STOP) {\n" "+\t\tif (dsim->e_clk_src != DSIM_EXT_CLK_BYPASS) {\n" "+\t\t\tdsim->state = DSIM_STATE_HSCLKEN;\n" "+\n" @@ -1588,7 +1590,7 @@ "+\n" "+\t\ts5p_mipi_dsi_set_lcdc_transfer_mode(dsim, 0);\n" "+\t} else {\n" - "+\t\tif (dsim->state = DSIM_STATE_INIT || dsim->state =\n" + "+\t\tif (dsim->state == DSIM_STATE_INIT || dsim->state ==\n" "+\t\t\tDSIM_STATE_ULPS) {\n" "+\t\t\tdev_err(dsim->dev,\n" "+\t\t\t\t\"DSI Master is not STOP or HSDT state.\\n\");\n" @@ -1894,9 +1896,9 @@ "+\t\t~((0x3 << 26) | (1 << 25) | (0x3 << 18) | (0x7 << 12) |\n" "+\t\t(0x3 << 16) | (0x7 << 8));\n" "+\n" - "+\tif (dsim_config->e_interface = DSIM_VIDEO)\n" + "+\tif (dsim_config->e_interface == DSIM_VIDEO)\n" "+\t\treg |= (1 << 25);\n" - "+\telse if (dsim_config->e_interface = DSIM_COMMAND)\n" + "+\telse if (dsim_config->e_interface == DSIM_COMMAND)\n" "+\t\treg &= ~(1 << 25);\n" "+\telse {\n" "+\t\tdev_err(dsim->dev, \"unknown lcd type.\\n\");\n" @@ -2715,7 +2717,8 @@ "+\tenum mipi_dsim_byte_clk_src\te_byte_clk;\n" "+\n" "+\t/*\n" - "+\t * =====================+\t * | P | M | S | MHz |\n" + "+\t * ===========================================\n" + "+\t * | P | M | S | MHz |\n" "+\t * -------------------------------------------\n" "+\t * | 3 | 100 | 3 | 100 |\n" "+\t * | 3 | 100 | 2 | 200 |\n" @@ -2927,4 +2930,4 @@ "-- \n" 1.7.4.1 -1593ae16a4f36528d872dc0dd89d86c232fcbea072856f61bb5d7715602e078a +f8837537eb79e3ee253617dd32129351154ae51fbdac66ddb3d446384067f057
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.