All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20080328093530.32474.78684.sendpatchset@rx1.opensource.se>

diff --git a/a/1.txt b/N1/1.txt
index d0b9345..ea1fcdb 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -238,28 +238,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);
@@ -381,7 +381,7 @@ Signed-off-by: Paul Mundt <lethal@linux-sh.org>
 +	init_waitqueue_head(&pd->wait);
 +
 +	/* Calculate the value for iccl. From the data sheet:
-+	 * iccl = (p clock ÷ transfer rate) × (L ÷ (L + H))
++	 * iccl = (p clock ÷ transfer rate) × (L ÷ (L + H))
 +	 * where L and H are the SCL low/high ratio (5/4 in this case).
 +	 * We also round off the result.
 +	 */
@@ -394,7 +394,7 @@ Signed-off-by: Paul Mundt <lethal@linux-sh.org>
 +		pd->iccl = (u_int8_t)(num/denom);
 +
 +	/* Calculate the value for icch. From the data sheet:
-+	   icch = (p clock ÷ transfer rate) × (H ÷ (L + H)) */
++	   icch = (p clock ÷ transfer rate) × (H ÷ (L + H)) */
 +	num = peripheral_clk * 4;
 +	tmp = num * 10 / denom;
 +	if (tmp % 10 >= 5)
@@ -449,7 +449,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;
 +	}
@@ -471,7 +471,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;
@@ -480,7 +480,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 7501f06..fe252aa 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 V4\0"
- "Date\0Fri, 28 Mar 2008 18:35:30 +0900\0"
+ "Date\0Fri, 28 Mar 2008 09:35:30 +0000\0"
  "To\0i2c@lm-sensors.org\0"
  "Cc\0khali@linux-fr.org"
   Magnus 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"
@@ -392,7 +393,7 @@
  "+\tinit_waitqueue_head(&pd->wait);\n"
  "+\n"
  "+\t/* Calculate the value for iccl. From the data sheet:\n"
- "+\t * iccl = (p clock \303\203\302\267 transfer rate) \303\203\302\227 (L \303\203\302\267 (L + H))\n"
+ "+\t * iccl = (p clock \303\267 transfer rate) \303\227 (L \303\267 (L + H))\n"
  "+\t * where L and H are the SCL low/high ratio (5/4 in this case).\n"
  "+\t * We also round off the result.\n"
  "+\t */\n"
@@ -405,7 +406,7 @@
  "+\t\tpd->iccl = (u_int8_t)(num/denom);\n"
  "+\n"
  "+\t/* Calculate the value for icch. From the data sheet:\n"
- "+\t   icch = (p clock \303\203\302\267 transfer rate) \303\203\302\227 (H \303\203\302\267 (L + H)) */\n"
+ "+\t   icch = (p clock \303\267 transfer rate) \303\227 (H \303\267 (L + H)) */\n"
  "+\tnum = peripheral_clk * 4;\n"
  "+\ttmp = num * 10 / denom;\n"
  "+\tif (tmp % 10 >= 5)\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\");"
 
-be88efcfbcb03114fd96673188bace0e41aa5a277147de49c441309555996faf
+3aa2977bb9244bb11b4029bcc652e78f6ff1e77ae1e3ba6e66f9142ca134b045

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.