All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <51FE2F54.4050104@kernel.org>

diff --git a/a/1.txt b/N1/1.txt
index b1db674..b755d9b 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -167,14 +167,14 @@ place).
 > +
 > +	switch (mask) {
 > +	case IIO_CHAN_INFO_RAW:
-> +		if (channel->type == IIO_VOLTAGE) {
+> +		if (channel->type = IIO_VOLTAGE) {
 > +			ret = tmp006_read_measurement(data, TMP006_VOBJECT);
 > +			if (ret < 0)
 > +				return ret;
 > +			*val = (s16) ret;
 I would marginally prefer you used sign_extend32 to do this (little
 bit clearer what is going on).
-> +		} else if (channel->type == IIO_TEMP) {
+> +		} else if (channel->type = IIO_TEMP) {
 > +			ret = tmp006_read_measurement(data, TMP006_TAMBIENT);
 > +			if (ret < 0)
 > +				return ret;
@@ -183,10 +183,10 @@ bit clearer what is going on).
 > +			break;
 > +		return IIO_VAL_INT;
 > +	case IIO_CHAN_INFO_SCALE:
-> +		if (channel->type == IIO_VOLTAGE) {
+> +		if (channel->type = IIO_VOLTAGE) {
 > +			*val = 0;
 > +			*val2 = 156250;
-> +		} else if (channel->type == IIO_TEMP) {
+> +		} else if (channel->type = IIO_TEMP) {
 > +			*val = 31;
 > +			*val2 = 250000;
 > +		} else
@@ -384,3 +384,8 @@ blank line.
 > +MODULE_DESCRIPTION("TI TMP006 IR thermophile sensor driver");
 > +MODULE_LICENSE("GPL");
 >
+
+_______________________________________________
+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 22774ad..fa8388f 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\01375136888-19978-1-git-send-email-pmeerw@pmeerw.net\0"
  "From\0Jonathan Cameron <jic23@kernel.org>\0"
- "Subject\0Re: [PATCH] iio: Add tmp006 IR temperature sensor\0"
- "Date\0Sun, 04 Aug 2013 11:39:16 +0100\0"
+ "Subject\0Re: [lm-sensors] [PATCH] iio: Add tmp006 IR temperature sensor\0"
+ "Date\0Sun, 04 Aug 2013 09:42:48 +0000\0"
  "To\0Peter Meerwald <pmeerw@pmeerw.net>\0"
  "Cc\0linux-iio@vger.kernel.org"
   LM Sensors <lm-sensors@lm-sensors.org>
@@ -178,14 +178,14 @@
  "> +\n"
  "> +\tswitch (mask) {\n"
  "> +\tcase IIO_CHAN_INFO_RAW:\n"
- "> +\t\tif (channel->type == IIO_VOLTAGE) {\n"
+ "> +\t\tif (channel->type = IIO_VOLTAGE) {\n"
  "> +\t\t\tret = tmp006_read_measurement(data, TMP006_VOBJECT);\n"
  "> +\t\t\tif (ret < 0)\n"
  "> +\t\t\t\treturn ret;\n"
  "> +\t\t\t*val = (s16) ret;\n"
  "I would marginally prefer you used sign_extend32 to do this (little\n"
  "bit clearer what is going on).\n"
- "> +\t\t} else if (channel->type == IIO_TEMP) {\n"
+ "> +\t\t} else if (channel->type = IIO_TEMP) {\n"
  "> +\t\t\tret = tmp006_read_measurement(data, TMP006_TAMBIENT);\n"
  "> +\t\t\tif (ret < 0)\n"
  "> +\t\t\t\treturn ret;\n"
@@ -194,10 +194,10 @@
  "> +\t\t\tbreak;\n"
  "> +\t\treturn IIO_VAL_INT;\n"
  "> +\tcase IIO_CHAN_INFO_SCALE:\n"
- "> +\t\tif (channel->type == IIO_VOLTAGE) {\n"
+ "> +\t\tif (channel->type = IIO_VOLTAGE) {\n"
  "> +\t\t\t*val = 0;\n"
  "> +\t\t\t*val2 = 156250;\n"
- "> +\t\t} else if (channel->type == IIO_TEMP) {\n"
+ "> +\t\t} else if (channel->type = IIO_TEMP) {\n"
  "> +\t\t\t*val = 31;\n"
  "> +\t\t\t*val2 = 250000;\n"
  "> +\t\t} else\n"
@@ -394,6 +394,11 @@
  "> +MODULE_AUTHOR(\"Peter Meerwald <pmeerw@pmeerw.net>\");\n"
  "> +MODULE_DESCRIPTION(\"TI TMP006 IR thermophile sensor driver\");\n"
  "> +MODULE_LICENSE(\"GPL\");\n"
- >
+ ">\n"
+ "\n"
+ "_______________________________________________\n"
+ "lm-sensors mailing list\n"
+ "lm-sensors@lm-sensors.org\n"
+ http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
 
-a60680578d99ac131bfb74a37cf1c21a33335189aa132ccd9ea93c81798055ba
+0b05e8d584a9f2f10e2b1be9a9105a78dd8d0e2cf0c4ba162d00205b7dbf4164

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.