All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20161102083751.6335-5-richard.dorsch@gmail.com>

diff --git a/a/1.txt b/N1/1.txt
index f1c21fb..0e3334c 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -164,9 +164,9 @@ index 0000000..15c496d
 +		return imanager_i2c_eval_status(ret);
 +
 +	if (msg->rlen) {
-+		if (msg->rlen = 1)
++		if (msg->rlen == 1)
 +			return msg->u.data[0];
-+		else if (msg->rlen = 2)
++		else if (msg->rlen == 2)
 +			return (msg->u.data[1] << 8) | msg->u.data[0];
 +		else
 +			return msg->rlen;
@@ -251,7 +251,7 @@ index 0000000..15c496d
 +		ret = imanager_i2c_wr_combined(ec, &msg);
 +		break;
 +	case I2C_SMBUS_BYTE:
-+		if (read_write = I2C_SMBUS_WRITE) {
++		if (read_write == I2C_SMBUS_WRITE) {
 +			msg.rlen = 1;
 +			smb->hdr.rlen = 1;
 +			smb->hdr.wlen = 1;
@@ -279,7 +279,7 @@ index 0000000..15c496d
 +			ret = -EINVAL;
 +			break;
 +		}
-+		if (read_write = I2C_SMBUS_WRITE) {
++		if (read_write == I2C_SMBUS_WRITE) {
 +			msg.rlen = 1;
 +			msg.wlen += 1;
 +			smb->hdr.rlen = 0;
@@ -304,7 +304,7 @@ index 0000000..15c496d
 +			ret = -EINVAL;
 +			break;
 +		}
-+		if (read_write = I2C_SMBUS_WRITE) {
++		if (read_write == I2C_SMBUS_WRITE) {
 +			msg.rlen = 1;
 +			msg.wlen += 2;
 +			smb->hdr.rlen = 0;
@@ -330,7 +330,7 @@ index 0000000..15c496d
 +			ret = -EINVAL;
 +			break;
 +		}
-+		if (read_write = I2C_SMBUS_WRITE) {
++		if (read_write == I2C_SMBUS_WRITE) {
 +			msg.rlen = 1;
 +			msg.wlen += buf[0];
 +			smb->hdr.rlen = 0;
@@ -350,7 +350,7 @@ index 0000000..15c496d
 +			ret = -EINVAL;
 +			break;
 +		}
-+		if (read_write = I2C_SMBUS_WRITE) {
++		if (read_write == I2C_SMBUS_WRITE) {
 +			msg.rlen = 1;
 +			msg.wlen += buf[0];
 +			smb->hdr.rlen = 0;
diff --git a/a/content_digest b/N1/content_digest
index 8086120..aa372d8 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020161102083751.6335-1-richard.dorsch@gmail.com\0"
  "From\0Richard Vidal-Dorsch <richard.dorsch@gmail.com>\0"
  "Subject\0[PATCH v4 4/6] Add Advantech iManager I2C driver\0"
- "Date\0Wed, 02 Nov 2016 08:37:49 +0000\0"
+ "Date\0Wed,  2 Nov 2016 01:37:49 -0700\0"
  "To\0linus.walleij@linaro.org"
   gnurou@gmail.com
   jdelvare@suse.com
@@ -190,9 +190,9 @@
  "+\t\treturn imanager_i2c_eval_status(ret);\n"
  "+\n"
  "+\tif (msg->rlen) {\n"
- "+\t\tif (msg->rlen = 1)\n"
+ "+\t\tif (msg->rlen == 1)\n"
  "+\t\t\treturn msg->u.data[0];\n"
- "+\t\telse if (msg->rlen = 2)\n"
+ "+\t\telse if (msg->rlen == 2)\n"
  "+\t\t\treturn (msg->u.data[1] << 8) | msg->u.data[0];\n"
  "+\t\telse\n"
  "+\t\t\treturn msg->rlen;\n"
@@ -277,7 +277,7 @@
  "+\t\tret = imanager_i2c_wr_combined(ec, &msg);\n"
  "+\t\tbreak;\n"
  "+\tcase I2C_SMBUS_BYTE:\n"
- "+\t\tif (read_write = I2C_SMBUS_WRITE) {\n"
+ "+\t\tif (read_write == I2C_SMBUS_WRITE) {\n"
  "+\t\t\tmsg.rlen = 1;\n"
  "+\t\t\tsmb->hdr.rlen = 1;\n"
  "+\t\t\tsmb->hdr.wlen = 1;\n"
@@ -305,7 +305,7 @@
  "+\t\t\tret = -EINVAL;\n"
  "+\t\t\tbreak;\n"
  "+\t\t}\n"
- "+\t\tif (read_write = I2C_SMBUS_WRITE) {\n"
+ "+\t\tif (read_write == I2C_SMBUS_WRITE) {\n"
  "+\t\t\tmsg.rlen = 1;\n"
  "+\t\t\tmsg.wlen += 1;\n"
  "+\t\t\tsmb->hdr.rlen = 0;\n"
@@ -330,7 +330,7 @@
  "+\t\t\tret = -EINVAL;\n"
  "+\t\t\tbreak;\n"
  "+\t\t}\n"
- "+\t\tif (read_write = I2C_SMBUS_WRITE) {\n"
+ "+\t\tif (read_write == I2C_SMBUS_WRITE) {\n"
  "+\t\t\tmsg.rlen = 1;\n"
  "+\t\t\tmsg.wlen += 2;\n"
  "+\t\t\tsmb->hdr.rlen = 0;\n"
@@ -356,7 +356,7 @@
  "+\t\t\tret = -EINVAL;\n"
  "+\t\t\tbreak;\n"
  "+\t\t}\n"
- "+\t\tif (read_write = I2C_SMBUS_WRITE) {\n"
+ "+\t\tif (read_write == I2C_SMBUS_WRITE) {\n"
  "+\t\t\tmsg.rlen = 1;\n"
  "+\t\t\tmsg.wlen += buf[0];\n"
  "+\t\t\tsmb->hdr.rlen = 0;\n"
@@ -376,7 +376,7 @@
  "+\t\t\tret = -EINVAL;\n"
  "+\t\t\tbreak;\n"
  "+\t\t}\n"
- "+\t\tif (read_write = I2C_SMBUS_WRITE) {\n"
+ "+\t\tif (read_write == I2C_SMBUS_WRITE) {\n"
  "+\t\t\tmsg.rlen = 1;\n"
  "+\t\t\tmsg.wlen += buf[0];\n"
  "+\t\t\tsmb->hdr.rlen = 0;\n"
@@ -535,4 +535,4 @@
  "-- \n"
  2.10.1
 
-91a2990c31472b9baa2d3a1b70101809ff1d8b8e7a05c01f8b3042304c53cca0
+8a955849138aa42587ba50263c7e65052b769046340ed6a4cabf1209af932a3a

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.