diff for duplicates of <201104042245.00875.linux@rainbow-software.org> diff --git a/a/1.txt b/N1/1.txt index 6433056..e916454 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -70,9 +70,9 @@ This is the CONFIG-less version. + +static bool s3fb_ddc_needs_mmio(int chip) +{ -+ return !(chip = CHIP_360_TRIO3D_1X || -+ chip = CHIP_362_TRIO3D_2X || -+ chip = CHIP_368_TRIO3D_2X); ++ return !(chip == CHIP_360_TRIO3D_1X || ++ chip == CHIP_362_TRIO3D_2X || ++ chip == CHIP_368_TRIO3D_2X); +} + +static u8 s3fb_ddc_read(struct s3fb_info *par) @@ -156,8 +156,8 @@ This is the CONFIG-less version. + * DDC and extension pins - switch it do DDC + */ +/* vga_wseq(par->state.vgabase, 0x08, 0x06); - not needed, already unlocked */ -+ if (par->chip = CHIP_357_VIRGE_GX2 || -+ par->chip = CHIP_359_VIRGE_GX2P) ++ if (par->chip == CHIP_357_VIRGE_GX2 || ++ par->chip == CHIP_359_VIRGE_GX2P) + svga_wseq_mask(par->state.vgabase, 0x0d, 0x01, 0x03); + else + svga_wseq_mask(par->state.vgabase, 0x0d, 0x00, 0x03); @@ -197,7 +197,7 @@ This is the CONFIG-less version. + info->fix.smem_start + MMIO_OFFSET); + } + if (!s3fb_ddc_needs_mmio(par->chip) || par->mmio) -+ if (s3fb_setup_ddc_bus(info) = 0) { ++ if (s3fb_setup_ddc_bus(info) == 0) { + u8 *edid = fb_ddc_read(&par->ddc_adapter); + par->ddc_registered = true; + if (edid) { @@ -215,7 +215,7 @@ This is the CONFIG-less version. + if (m) { + fb_videomode_to_var(&info->var, m); + /* fill all other info->var's fields */ -+ if (s3fb_check_var(&info->var, info) = 0) ++ if (s3fb_check_var(&info->var, info) == 0) + found = true; + } + } @@ -227,7 +227,7 @@ This is the CONFIG-less version. /* Prepare startup mode */ - rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8); -- if (! ((rc = 1) || (rc = 2))) { +- if (! ((rc == 1) || (rc == 2))) { - rc = -EINVAL; - dev_err(info->device, "mode %s not found\n", mode_option); - goto err_find_mode; @@ -235,7 +235,7 @@ This is the CONFIG-less version. + rc = fb_find_mode(&info->var, info, mode_option, + info->monspecs.modedb, info->monspecs.modedb_len, + NULL, info->var.bits_per_pixel); -+ if (!rc || rc = 4) { ++ if (!rc || rc == 4) { + rc = -EINVAL; + dev_err(info->device, "mode %s not found\n", mode_option); + fb_destroy_modedb(info->monspecs.modedb); diff --git a/a/content_digest b/N1/content_digest index 3ea07ca..09a1756 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -3,7 +3,7 @@ "ref\020110404084200.GD28208@linux-sh.org\0" "From\0Ondrej Zary <linux@rainbow-software.org>\0" "Subject\0Re: [PATCH v3] s3fb: add DDC support\0" - "Date\0Mon, 04 Apr 2011 20:44:58 +0000\0" + "Date\0Mon, 4 Apr 2011 22:44:58 +0200\0" "To\0Paul Mundt <lethal@linux-sh.org>\0" "Cc\0Ondrej Zajicek <santiago@crfreenet.org>" linux-fbdev@vger.kernel.org @@ -82,9 +82,9 @@ "+\n" "+static bool s3fb_ddc_needs_mmio(int chip)\n" "+{\n" - "+\treturn !(chip = CHIP_360_TRIO3D_1X ||\n" - "+\t\t chip = CHIP_362_TRIO3D_2X ||\n" - "+\t\t chip = CHIP_368_TRIO3D_2X);\n" + "+\treturn !(chip == CHIP_360_TRIO3D_1X ||\n" + "+\t\t chip == CHIP_362_TRIO3D_2X ||\n" + "+\t\t chip == CHIP_368_TRIO3D_2X);\n" "+}\n" "+\n" "+static u8 s3fb_ddc_read(struct s3fb_info *par)\n" @@ -168,8 +168,8 @@ "+\t * DDC and extension pins - switch it do DDC\n" "+\t */\n" "+/*\tvga_wseq(par->state.vgabase, 0x08, 0x06); - not needed, already unlocked */\n" - "+\tif (par->chip = CHIP_357_VIRGE_GX2 ||\n" - "+\t par->chip = CHIP_359_VIRGE_GX2P)\n" + "+\tif (par->chip == CHIP_357_VIRGE_GX2 ||\n" + "+\t par->chip == CHIP_359_VIRGE_GX2P)\n" "+\t\tsvga_wseq_mask(par->state.vgabase, 0x0d, 0x01, 0x03);\n" "+\telse\n" "+\t\tsvga_wseq_mask(par->state.vgabase, 0x0d, 0x00, 0x03);\n" @@ -209,7 +209,7 @@ "+\t\t\t\tinfo->fix.smem_start + MMIO_OFFSET);\n" "+\t}\n" "+\tif (!s3fb_ddc_needs_mmio(par->chip) || par->mmio)\n" - "+\t\tif (s3fb_setup_ddc_bus(info) = 0) {\n" + "+\t\tif (s3fb_setup_ddc_bus(info) == 0) {\n" "+\t\t\tu8 *edid = fb_ddc_read(&par->ddc_adapter);\n" "+\t\t\tpar->ddc_registered = true;\n" "+\t\t\tif (edid) {\n" @@ -227,7 +227,7 @@ "+\t\t\t\t\tif (m) {\n" "+\t\t\t\t\t\tfb_videomode_to_var(&info->var, m);\n" "+\t\t\t\t\t\t/* fill all other info->var's fields */\n" - "+\t\t\t\t\t\tif (s3fb_check_var(&info->var, info) = 0)\n" + "+\t\t\t\t\t\tif (s3fb_check_var(&info->var, info) == 0)\n" "+\t\t\t\t\t\t\tfound = true;\n" "+\t\t\t\t\t}\n" "+\t\t\t\t}\n" @@ -239,7 +239,7 @@ " \n" " \t/* Prepare startup mode */\n" "-\trc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);\n" - "-\tif (! ((rc = 1) || (rc = 2))) {\n" + "-\tif (! ((rc == 1) || (rc == 2))) {\n" "-\t\trc = -EINVAL;\n" "-\t\tdev_err(info->device, \"mode %s not found\\n\", mode_option);\n" "-\t\tgoto err_find_mode;\n" @@ -247,7 +247,7 @@ "+\t\trc = fb_find_mode(&info->var, info, mode_option,\n" "+\t\t\t\t info->monspecs.modedb, info->monspecs.modedb_len,\n" "+\t\t\t\t NULL, info->var.bits_per_pixel);\n" - "+\t\tif (!rc || rc = 4) {\n" + "+\t\tif (!rc || rc == 4) {\n" "+\t\t\trc = -EINVAL;\n" "+\t\t\tdev_err(info->device, \"mode %s not found\\n\", mode_option);\n" "+\t\t\tfb_destroy_modedb(info->monspecs.modedb);\n" @@ -290,4 +290,4 @@ "-- \n" Ondrej Zary -a9103a39e012241f13b08c0c66b5320f532e673159b43cc170f8976a9ffb218a +59e2e44bec70231c305e8e8b8a9d402f16e084e617a90476abbe4a20d53e691e
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.