All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <87ob5uv5bv.fsf@natisbad.org>

diff --git a/a/1.txt b/N1/1.txt
index 63860e7..f0a7c30 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -67,7 +67,7 @@ index 0000000..3508d53
 +++ b/Documentation/hwmon/g751
 @@ -0,0 +1,44 @@
 +Kernel driver g751
-+=========
++==================
 +
 +The GMT G751 is an I2C digital temperature sensor and thermal watchdog. For
 +additional information, a detailed datasheet of the chip is available at
@@ -201,7 +201,7 @@ index 0000000..9c85c41
 +};
 +
 +/* Provide size of given register */
-+#define G751_DATA_REG_LEN(reg) (((reg) = G751_REG_CONF) ? 1 : 2)
++#define G751_DATA_REG_LEN(reg) (((reg) == G751_REG_CONF) ? 1 : 2)
 +
 +/* Configuration register bits: shifts and masks */
 +#define G751_CONF_FQUEUE_SHIFT   3
@@ -222,7 +222,7 @@ index 0000000..9c85c41
 +
 +static inline void temp_to_reg(u8 *regval, int32_t temp)
 +{
-+	regval[0] = (temp < 0 && temp/1000 = 0) ? 0xff : temp/1000;
++	regval[0] = (temp < 0 && temp/1000 == 0) ? 0xff : temp/1000;
 +	regval[1] = ((temp/500) & 0x1) ? 0x80 : 0x00;
 +}
 +
@@ -287,7 +287,7 @@ index 0000000..9c85c41
 +	};
 +	int ret;
 +
-+	BUG_ON(reg > 3 || reg = 0); /* temp reg (0) is read-only */
++	BUG_ON(reg > 3 || reg == 0); /* temp reg (0) is read-only */
 +
 +	memcpy(&buf[1], val, G751_DATA_REG_LEN(reg));
 +	ret = i2c_transfer(client->adapter, msgs, 1);
@@ -674,9 +674,3 @@ index 0000000..fec0415
 +#endif /* __LINUX_PLATFORM_DATA_G751_H__ */
 -- 
 1.8.4.rc3
-
-
-_______________________________________________
-lm-sensors mailing list
-lm-sensors@lm-sensors.org
-http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
diff --git a/a/content_digest b/N1/content_digest
index 669bb47..8966e89 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0arno@natisbad.org (Arnaud Ebalard)\0"
- "Subject\0[lm-sensors] [PATCHv0] hwmon: Add support for GMT G751 Temp. Sensor and Thermal Watchdog\0"
- "Date\0Fri, 08 Nov 2013 23:31:16 +0000\0"
+ "Subject\0[PATCHv0] hwmon: Add support for GMT G751 Temp. Sensor and Thermal Watchdog\0"
+ "Date\0Sat, 09 Nov 2013 00:31:16 +0100\0"
  "To\0Guenter Roeck <linux@roeck-us.net>"
  " Jean Delvare <khali@linux-fr.org>\0"
  "Cc\0Rob Herring <rob.herring@calxeda.com>"
@@ -87,7 +87,7 @@
  "+++ b/Documentation/hwmon/g751\n"
  "@@ -0,0 +1,44 @@\n"
  "+Kernel driver g751\n"
- "+=========\n"
+ "+==================\n"
  "+\n"
  "+The GMT G751 is an I2C digital temperature sensor and thermal watchdog. For\n"
  "+additional information, a detailed datasheet of the chip is available at\n"
@@ -221,7 +221,7 @@
  "+};\n"
  "+\n"
  "+/* Provide size of given register */\n"
- "+#define G751_DATA_REG_LEN(reg) (((reg) = G751_REG_CONF) ? 1 : 2)\n"
+ "+#define G751_DATA_REG_LEN(reg) (((reg) == G751_REG_CONF) ? 1 : 2)\n"
  "+\n"
  "+/* Configuration register bits: shifts and masks */\n"
  "+#define G751_CONF_FQUEUE_SHIFT   3\n"
@@ -242,7 +242,7 @@
  "+\n"
  "+static inline void temp_to_reg(u8 *regval, int32_t temp)\n"
  "+{\n"
- "+\tregval[0] = (temp < 0 && temp/1000 = 0) ? 0xff : temp/1000;\n"
+ "+\tregval[0] = (temp < 0 && temp/1000 == 0) ? 0xff : temp/1000;\n"
  "+\tregval[1] = ((temp/500) & 0x1) ? 0x80 : 0x00;\n"
  "+}\n"
  "+\n"
@@ -307,7 +307,7 @@
  "+\t};\n"
  "+\tint ret;\n"
  "+\n"
- "+\tBUG_ON(reg > 3 || reg = 0); /* temp reg (0) is read-only */\n"
+ "+\tBUG_ON(reg > 3 || reg == 0); /* temp reg (0) is read-only */\n"
  "+\n"
  "+\tmemcpy(&buf[1], val, G751_DATA_REG_LEN(reg));\n"
  "+\tret = i2c_transfer(client->adapter, msgs, 1);\n"
@@ -693,12 +693,6 @@
  "+\n"
  "+#endif /* __LINUX_PLATFORM_DATA_G751_H__ */\n"
  "-- \n"
- "1.8.4.rc3\n"
- "\n"
- "\n"
- "_______________________________________________\n"
- "lm-sensors mailing list\n"
- "lm-sensors@lm-sensors.org\n"
- http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
+ 1.8.4.rc3
 
-828ab643e2cdfce37b0fddcbd7630e0501989f8117275d4e2e6bd241b18a2b6b
+bae6c3402dc8f1f5e45fad23767f810ba7065bdf7f72f953c34c6b6489061d93

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.