diff for duplicates of <20080325105559.GA30232@linux-sh.org> diff --git a/a/1.txt b/N1/1.txt index 40057c2..7befb67 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -239,28 +239,28 @@ index 0000000..ff7f69e + goto do_wakeup; + } + -+ if (pd->pos == msg->len) { ++ if (pd->pos = msg->len) { + i2c_op(pd, OP_RX_ONLY, 0); + wakeup = 1; + goto do_wakeup; + } + -+ if (pd->pos == -1) { ++ if (pd->pos = -1) { + data = (msg->addr & 0x7f) << 1; + data |= (msg->flags & I2C_M_RD) ? 1 : 0; + } else + data = msg->buf[pd->pos]; + -+ if ((pd->pos == -1) || !(msg->flags & I2C_M_RD)) { ++ if ((pd->pos = -1) || !(msg->flags & I2C_M_RD)) { + if (msg->flags & I2C_M_RD) + i2c_op(pd, OP_TX_TO_RX, data); -+ else if (pd->pos == (msg->len - 1)) { ++ else if (pd->pos = (msg->len - 1)) { + i2c_op(pd, OP_TX_STOP, data); + wakeup = 1; + } else + i2c_op(pd, OP_TX_ONLY, data); + } else { -+ if (pd->pos == (msg->len - 1)) ++ if (pd->pos = (msg->len - 1)) + data = i2c_op(pd, OP_RX_STOP, 0); + else + data = i2c_op(pd, OP_RX_ONLY, 0); @@ -450,7 +450,7 @@ index 0000000..ff7f69e + int ret; + + pd = kzalloc(sizeof(struct sh_mobile_i2c_data), GFP_KERNEL); -+ if (pd == NULL) { ++ if (pd = NULL) { + dev_err(&dev->dev, "cannot allocate private data\n"); + return -ENOMEM; + } @@ -472,7 +472,7 @@ index 0000000..ff7f69e + platform_set_drvdata(dev, pd); + + res = platform_get_resource(dev, IORESOURCE_MEM, 0); -+ if (res == NULL) { ++ if (res = NULL) { + dev_err(&dev->dev, "cannot find IO resource\n"); + ret = -ENOENT; + goto err_irq; @@ -481,7 +481,7 @@ index 0000000..ff7f69e + size = (res->end - res->start) + 1; + + pd->reg = ioremap(res->start, size); -+ if (pd->reg == NULL) { ++ if (pd->reg = NULL) { + dev_err(&dev->dev, "cannot map IO\n"); + ret = -ENXIO; + goto err_irq; diff --git a/a/content_digest b/N1/content_digest index 489f474..4285e61 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,7 @@ + "ref\020080320141840.13560.24850.sendpatchset@rx1.opensource.se\0" "From\0Paul Mundt <lethal@linux-sh.org>\0" "Subject\0[PATCH] i2c: SuperH Mobile I2C Bus Controller V3\0" - "Date\0Tue, 25 Mar 2008 19:55:59 +0900\0" + "Date\0Tue, 25 Mar 2008 10:55:59 +0000\0" "To\0i2c@lm-sensors.org" " khali@linux-fr.org\0" "Cc\0Magnus Damm <magnus.damm@gmail.com>" @@ -249,28 +250,28 @@ "+\t\tgoto do_wakeup;\n" "+\t}\n" "+\n" - "+\tif (pd->pos == msg->len) {\n" + "+\tif (pd->pos = msg->len) {\n" "+\t\ti2c_op(pd, OP_RX_ONLY, 0);\n" "+\t\twakeup = 1;\n" "+\t\tgoto do_wakeup;\n" "+\t}\n" "+\n" - "+\tif (pd->pos == -1) {\n" + "+\tif (pd->pos = -1) {\n" "+\t\tdata = (msg->addr & 0x7f) << 1;\n" "+\t\tdata |= (msg->flags & I2C_M_RD) ? 1 : 0;\n" "+\t} else\n" "+\t\tdata = msg->buf[pd->pos];\n" "+\n" - "+\tif ((pd->pos == -1) || !(msg->flags & I2C_M_RD)) {\n" + "+\tif ((pd->pos = -1) || !(msg->flags & I2C_M_RD)) {\n" "+\t\tif (msg->flags & I2C_M_RD)\n" "+\t\t\ti2c_op(pd, OP_TX_TO_RX, data);\n" - "+\t\telse if (pd->pos == (msg->len - 1)) {\n" + "+\t\telse if (pd->pos = (msg->len - 1)) {\n" "+\t\t\ti2c_op(pd, OP_TX_STOP, data);\n" "+\t\t\twakeup = 1;\n" "+\t\t} else\n" "+\t\t\ti2c_op(pd, OP_TX_ONLY, data);\n" "+\t} else {\n" - "+\t\tif (pd->pos == (msg->len - 1))\n" + "+\t\tif (pd->pos = (msg->len - 1))\n" "+\t\t\tdata = i2c_op(pd, OP_RX_STOP, 0);\n" "+\t\telse\n" "+\t\t\tdata = i2c_op(pd, OP_RX_ONLY, 0);\n" @@ -460,7 +461,7 @@ "+\tint ret;\n" "+\n" "+\tpd = kzalloc(sizeof(struct sh_mobile_i2c_data), GFP_KERNEL);\n" - "+\tif (pd == NULL) {\n" + "+\tif (pd = NULL) {\n" "+\t\tdev_err(&dev->dev, \"cannot allocate private data\\n\");\n" "+\t\treturn -ENOMEM;\n" "+\t}\n" @@ -482,7 +483,7 @@ "+\tplatform_set_drvdata(dev, pd);\n" "+\n" "+\tres = platform_get_resource(dev, IORESOURCE_MEM, 0);\n" - "+\tif (res == NULL) {\n" + "+\tif (res = NULL) {\n" "+\t\tdev_err(&dev->dev, \"cannot find IO resource\\n\");\n" "+\t\tret = -ENOENT;\n" "+\t\tgoto err_irq;\n" @@ -491,7 +492,7 @@ "+\tsize = (res->end - res->start) + 1;\n" "+\n" "+\tpd->reg = ioremap(res->start, size);\n" - "+\tif (pd->reg == NULL) {\n" + "+\tif (pd->reg = NULL) {\n" "+\t\tdev_err(&dev->dev, \"cannot map IO\\n\");\n" "+\t\tret = -ENXIO;\n" "+\t\tgoto err_irq;\n" @@ -566,4 +567,4 @@ "+MODULE_AUTHOR(\"Magnus Damm\");\n" "+MODULE_LICENSE(\"GPL\");" -b40fa549b4760d44352aec416a1eec8623499763ed7337416b16e4fdcd21e331 +5e7a837c28d066b6f56876cb4e9995242fa517c1df6b4d4a6dbac5a041390943
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.