All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <1371120019-1744-2-git-send-email-reinhard.pfau@gdsys.cc>

diff --git a/a/1.txt b/N1/1.txt
index 882c6e2..4eb9d08 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -100,8 +100,7 @@ index 0000000..4de033b
 +++ b/Documentation/hwmon/emc2305
 @@ -0,0 +1,33 @@
 +Kernel driver emc2305
-+=====================
-+
++==========+
 +Supported chips:
 +  * SMSC EMC2305, EMC2303, EMC2302, EMC2301
 +    Adresses scanned: I2C 0x2c, 0x2d, 0x2e, 0x2f, 0x4c, 0x4d
@@ -437,7 +436,7 @@ index 0000000..29acead
 +	int new_range_bits, old_div = 8 / fan->multiplier;
 +	int status = 0;
 +
-+	if (new_div == old_div) /* No change */
++	if (new_div = old_div) /* No change */
 +		return 0;
 +
 +	switch (new_div) {
@@ -506,7 +505,7 @@ index 0000000..29acead
 +
 +	mutex_lock(&data->update_lock);
 +
-+	if (rpm_target == 0)
++	if (rpm_target = 0)
 +		fan->target = 0x1fff;
 +	else
 +		fan->target = clamp_val(
@@ -591,7 +590,7 @@ index 0000000..29acead
 +show_fan_fault(struct device *dev, struct device_attribute *da, char *buf)
 +{
 +	struct emc2305_fan_data *fan = emc2305_update_device_fan(dev, da);
-+	bool fault = ((fan->tach & 0x1fe0) == 0x1fe0);
++	bool fault = ((fan->tach & 0x1fe0) = 0x1fe0);
 +	return sprintf(buf, "%d\n", fault ? 1 : 0);
 +}
 +
@@ -814,7 +813,7 @@ index 0000000..29acead
 +			}
 +			value = be32_to_cpup(property);
 +			status = attr->set(client, fan_idx, value);
-+			if (status == -EINVAL) {
++			if (status = -EINVAL) {
 +				dev_err(&client->dev,
 +					"invalid value for %s on %s\n",
 +					attr->name, node->full_name);
@@ -946,8 +945,7 @@ index 0000000..29acead
 +	if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
 +		return -ENODEV;
 +
-+	manufacturer =
-+		i2c_smbus_read_byte_data(new_client, REG_MANUFACTURER_ID);
++	manufacturer +		i2c_smbus_read_byte_data(new_client, REG_MANUFACTURER_ID);
 +	if (manufacturer != 0x5D)
 +		return -ENODEV;
 +
@@ -991,4 +989,10 @@ index 0000000..29acead
 +MODULE_DESCRIPTION("SMSC EMC2305 hwmon driver");
 +MODULE_LICENSE("GPL");
 -- 
-1.7.2.5
\ No newline at end of file
+1.7.2.5
+
+
+_______________________________________________
+lm-sensors mailing list
+lm-sensors@lm-sensors.org
+http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
\ No newline at end of file
diff --git a/a/content_digest b/N1/content_digest
index 305b68e..dce2102 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -5,10 +5,10 @@
   "From\0Reinhard Pfau <reinhard.pfau\@gdsys.cc>\0"
 ]
 [
-  "Subject\0[PATCH] hwmon: add support for SMSC EMC2305/03/02/01 fan controller\0"
+  "Subject\0[lm-sensors] [PATCH] hwmon: add support for SMSC EMC2305/03/02/01 fan controller\0"
 ]
 [
-  "Date\0Thu, 13 Jun 2013 12:40:19 +0200\0"
+  "Date\0Thu, 13 Jun 2013 10:40:19 +0000\0"
 ]
 [
   "To\0linux-kernel\@vger.kernel.org",
@@ -130,8 +130,7 @@
   "+++ b/Documentation/hwmon/emc2305\n",
   "\@\@ -0,0 +1,33 \@\@\n",
   "+Kernel driver emc2305\n",
-  "+=====================\n",
-  "+\n",
+  "+==========+\n",
   "+Supported chips:\n",
   "+  * SMSC EMC2305, EMC2303, EMC2302, EMC2301\n",
   "+    Adresses scanned: I2C 0x2c, 0x2d, 0x2e, 0x2f, 0x4c, 0x4d\n",
@@ -467,7 +466,7 @@
   "+\tint new_range_bits, old_div = 8 / fan->multiplier;\n",
   "+\tint status = 0;\n",
   "+\n",
-  "+\tif (new_div == old_div) /* No change */\n",
+  "+\tif (new_div = old_div) /* No change */\n",
   "+\t\treturn 0;\n",
   "+\n",
   "+\tswitch (new_div) {\n",
@@ -536,7 +535,7 @@
   "+\n",
   "+\tmutex_lock(&data->update_lock);\n",
   "+\n",
-  "+\tif (rpm_target == 0)\n",
+  "+\tif (rpm_target = 0)\n",
   "+\t\tfan->target = 0x1fff;\n",
   "+\telse\n",
   "+\t\tfan->target = clamp_val(\n",
@@ -621,7 +620,7 @@
   "+show_fan_fault(struct device *dev, struct device_attribute *da, char *buf)\n",
   "+{\n",
   "+\tstruct emc2305_fan_data *fan = emc2305_update_device_fan(dev, da);\n",
-  "+\tbool fault = ((fan->tach & 0x1fe0) == 0x1fe0);\n",
+  "+\tbool fault = ((fan->tach & 0x1fe0) = 0x1fe0);\n",
   "+\treturn sprintf(buf, \"%d\\n\", fault ? 1 : 0);\n",
   "+}\n",
   "+\n",
@@ -844,7 +843,7 @@
   "+\t\t\t}\n",
   "+\t\t\tvalue = be32_to_cpup(property);\n",
   "+\t\t\tstatus = attr->set(client, fan_idx, value);\n",
-  "+\t\t\tif (status == -EINVAL) {\n",
+  "+\t\t\tif (status = -EINVAL) {\n",
   "+\t\t\t\tdev_err(&client->dev,\n",
   "+\t\t\t\t\t\"invalid value for %s on %s\\n\",\n",
   "+\t\t\t\t\tattr->name, node->full_name);\n",
@@ -976,8 +975,7 @@
   "+\tif (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))\n",
   "+\t\treturn -ENODEV;\n",
   "+\n",
-  "+\tmanufacturer =\n",
-  "+\t\ti2c_smbus_read_byte_data(new_client, REG_MANUFACTURER_ID);\n",
+  "+\tmanufacturer +\t\ti2c_smbus_read_byte_data(new_client, REG_MANUFACTURER_ID);\n",
   "+\tif (manufacturer != 0x5D)\n",
   "+\t\treturn -ENODEV;\n",
   "+\n",
@@ -1021,7 +1019,13 @@
   "+MODULE_DESCRIPTION(\"SMSC EMC2305 hwmon driver\");\n",
   "+MODULE_LICENSE(\"GPL\");\n",
   "-- \n",
-  "1.7.2.5"
+  "1.7.2.5\n",
+  "\n",
+  "\n",
+  "_______________________________________________\n",
+  "lm-sensors mailing list\n",
+  "lm-sensors\@lm-sensors.org\n",
+  "http://lists.lm-sensors.org/mailman/listinfo/lm-sensors"
 ]
 
-30b0eb1267f07a9c2e31697687b7bdeb4673a12d350e2f746ef528579ed50a8a
+f2523f280e7d2a69e0bd1a9ce78da5cc2dc6e2d0d092c1f2d666aa0297a134f8

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.