diff for duplicates of <20080402025950.1026.44461.sendpatchset@rx1.opensource.se> diff --git a/a/1.txt b/N1/1.txt index 1cc643c..ee2be37 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -246,28 +246,28 @@ Signed-off-by: Paul Mundt <lethal@linux-sh.org> + 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); @@ -459,7 +459,7 @@ Signed-off-by: Paul Mundt <lethal@linux-sh.org> + 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; + } @@ -481,7 +481,7 @@ Signed-off-by: Paul Mundt <lethal@linux-sh.org> + 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; @@ -490,7 +490,7 @@ Signed-off-by: Paul Mundt <lethal@linux-sh.org> + 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 4092890..5977c12 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,7 @@ + "ref\020080320141840.13560.24850.sendpatchset@rx1.opensource.se\0" "From\0Magnus Damm <magnus.damm@gmail.com>\0" "Subject\0[PATCH] i2c: SuperH Mobile I2C Bus Controller V5\0" - "Date\0Wed, 02 Apr 2008 11:59:50 +0900\0" + "Date\0Wed, 02 Apr 2008 02:59:50 +0000\0" "To\0i2c@lm-sensors.org\0" "Cc\0linux-sh@vger.kernel.org" lethal@linux-sh.org @@ -258,28 +259,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" @@ -471,7 +472,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" @@ -493,7 +494,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" @@ -502,7 +503,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" @@ -579,4 +580,4 @@ "+MODULE_AUTHOR(\"Magnus Damm\");\n" "+MODULE_LICENSE(\"GPL v2\");" -08254a3a1bb3bee0448124e5ff3c9e8bdc60f0669d2f8539d6e9197bdfd0c355 +a0e20e74b46a7c4c30f265c2c2f8afc6f93f56465ce10dbce100463553e4c278
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.