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

diff --git a/a/1.txt b/N1/1.txt
index f3b1bb6..065f58b 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -163,7 +163,7 @@ index 0000000..2ec1b79
 +
 +	do {
 +		ret = inb(IT8528_CMD_PORT);
-+		if (CHECK_BIT(ret, bit) = state)
++		if (CHECK_BIT(ret, bit) == state)
 +			return 0;
 +		usleep_range(EC_DELAY_MIN, EC_DELAY_MAX);
 +	} while (i++ < EC_MAX_RETRY);
@@ -381,7 +381,7 @@ index 0000000..2ec1b79
 +			break;
 +		}
 +	case IRQ:
-+		if (attr->did = WDIRQ) {
++		if (attr->did == WDIRQ) {
 +			wdt->attr[0] = attr;
 +			wdt->num++;
 +			break;
@@ -412,7 +412,7 @@ index 0000000..2ec1b79
 +	for (i = 0; i < EC_MAX_DID && msgs[DEVID].u.data[i]; i++) {
 +		attr = &ec->attr[i];
 +		for (j = 0; j < ARRAY_SIZE(ecdev_table); j++) {
-+			if (ecdev_table[j].did = msgs[DEVID].u.data[i]) {
++			if (ecdev_table[j].did == msgs[DEVID].u.data[i]) {
 +				attr->did = msgs[DEVID].u.data[i];
 +				attr->hwp = msgs[HWPIN].u.data[i];
 +				attr->pol = msgs[POLARITY].u.data[i];
@@ -575,7 +575,7 @@ index 0000000..2ec1b79
 +		return ret;
 +
 +	if (msg->rlen) {
-+		if (msg->rlen = EC_F_HWMON_MSG)
++		if (msg->rlen == EC_F_HWMON_MSG)
 +			msg->rlen = ec->io.read(EC_MSG_OFFSET_LEN);
 +		if (payload) /* i2c, hwmon, wdt */
 +			offset = EC_MSG_OFFSET_PAYLOAD;
@@ -908,11 +908,11 @@ index 0000000..2ec1b79
 +	int chipid = ec_read_chipid(EC_BASE_ADDR);
 +	int ret;
 +
-+	if (chipid = CHIP_ID_IT8518) {
++	if (chipid == CHIP_ID_IT8518) {
 +		ec->io.read	= ec_io18_read;
 +		ec->io.write	= ec_io18_write;
 +		ec->chip_name	= chip_names[IT8518];
-+	} else if (chipid = CHIP_ID_IT8528) {
++	} else if (chipid == CHIP_ID_IT8528) {
 +		ec->io.read	= ec_io28_read;
 +		ec->io.write	= ec_io28_write;
 +		ec->chip_name	= chip_names[IT8528];
diff --git a/a/content_digest b/N1/content_digest
index 812e575..0bb26d4 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 1/6] Add Advantech iManager MFD core driver\0"
- "Date\0Wed, 02 Nov 2016 08:37:46 +0000\0"
+ "Date\0Wed,  2 Nov 2016 01:37:46 -0700\0"
  "To\0linus.walleij@linaro.org"
   gnurou@gmail.com
   jdelvare@suse.com
@@ -189,7 +189,7 @@
  "+\n"
  "+\tdo {\n"
  "+\t\tret = inb(IT8528_CMD_PORT);\n"
- "+\t\tif (CHECK_BIT(ret, bit) = state)\n"
+ "+\t\tif (CHECK_BIT(ret, bit) == state)\n"
  "+\t\t\treturn 0;\n"
  "+\t\tusleep_range(EC_DELAY_MIN, EC_DELAY_MAX);\n"
  "+\t} while (i++ < EC_MAX_RETRY);\n"
@@ -407,7 +407,7 @@
  "+\t\t\tbreak;\n"
  "+\t\t}\n"
  "+\tcase IRQ:\n"
- "+\t\tif (attr->did = WDIRQ) {\n"
+ "+\t\tif (attr->did == WDIRQ) {\n"
  "+\t\t\twdt->attr[0] = attr;\n"
  "+\t\t\twdt->num++;\n"
  "+\t\t\tbreak;\n"
@@ -438,7 +438,7 @@
  "+\tfor (i = 0; i < EC_MAX_DID && msgs[DEVID].u.data[i]; i++) {\n"
  "+\t\tattr = &ec->attr[i];\n"
  "+\t\tfor (j = 0; j < ARRAY_SIZE(ecdev_table); j++) {\n"
- "+\t\t\tif (ecdev_table[j].did = msgs[DEVID].u.data[i]) {\n"
+ "+\t\t\tif (ecdev_table[j].did == msgs[DEVID].u.data[i]) {\n"
  "+\t\t\t\tattr->did = msgs[DEVID].u.data[i];\n"
  "+\t\t\t\tattr->hwp = msgs[HWPIN].u.data[i];\n"
  "+\t\t\t\tattr->pol = msgs[POLARITY].u.data[i];\n"
@@ -601,7 +601,7 @@
  "+\t\treturn ret;\n"
  "+\n"
  "+\tif (msg->rlen) {\n"
- "+\t\tif (msg->rlen = EC_F_HWMON_MSG)\n"
+ "+\t\tif (msg->rlen == EC_F_HWMON_MSG)\n"
  "+\t\t\tmsg->rlen = ec->io.read(EC_MSG_OFFSET_LEN);\n"
  "+\t\tif (payload) /* i2c, hwmon, wdt */\n"
  "+\t\t\toffset = EC_MSG_OFFSET_PAYLOAD;\n"
@@ -934,11 +934,11 @@
  "+\tint chipid = ec_read_chipid(EC_BASE_ADDR);\n"
  "+\tint ret;\n"
  "+\n"
- "+\tif (chipid = CHIP_ID_IT8518) {\n"
+ "+\tif (chipid == CHIP_ID_IT8518) {\n"
  "+\t\tec->io.read\t= ec_io18_read;\n"
  "+\t\tec->io.write\t= ec_io18_write;\n"
  "+\t\tec->chip_name\t= chip_names[IT8518];\n"
- "+\t} else if (chipid = CHIP_ID_IT8528) {\n"
+ "+\t} else if (chipid == CHIP_ID_IT8528) {\n"
  "+\t\tec->io.read\t= ec_io28_read;\n"
  "+\t\tec->io.write\t= ec_io28_write;\n"
  "+\t\tec->chip_name\t= chip_names[IT8528];\n"
@@ -1492,4 +1492,4 @@
  "-- \n"
  2.10.1
 
-9b0e67171a1377f3ee615ee886700d83102471af3dbb2736e95ff4514eb7917d
+f2538055b3912f1626fe052dc45ef1e0a95e55ddf07dca879b0c248df7dadc31

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.