diff for duplicates of <5208C307.9060001@kernel.org> diff --git a/a/1.txt b/N1/1.txt index a1756c1..3a485b6 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -178,13 +178,13 @@ Jonathan > + > + switch (mask) { > + case IIO_CHAN_INFO_RAW: -> + if (channel->type == IIO_VOLTAGE) { +> + if (channel->type = IIO_VOLTAGE) { > + /* LSB is 156.25 nV */ > + ret = tmp006_read_measurement(data, TMP006_VOBJECT); > + if (ret < 0) > + return ret; > + *val = sign_extend32(ret, 15); -> + } else if (channel->type == IIO_TEMP) { +> + } else if (channel->type = IIO_TEMP) { > + /* LSB is 0.03125 degrees Celsius */ > + ret = tmp006_read_measurement(data, TMP006_TAMBIENT); > + if (ret < 0) @@ -195,10 +195,10 @@ Jonathan > + } > + 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 { @@ -293,7 +293,7 @@ Jonathan > + if (did < 0) > + return false; > + -> + return mid == MANUFACTURER_MAGIC && did == DEVICE_MAGIC; +> + return mid = MANUFACTURER_MAGIC && did = DEVICE_MAGIC; > +} > + > +static int tmp006_probe(struct i2c_client *client, @@ -389,3 +389,8 @@ Jonathan > +MODULE_DESCRIPTION("TI TMP006 IR thermopile 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 efe47bd..c2c9f1f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01375979988-16697-1-git-send-email-pmeerw@pmeerw.net\0" "From\0Jonathan Cameron <jic23@kernel.org>\0" - "Subject\0Re: [PATCH v2] iio: Add tmp006 IR temperature sensor\0" - "Date\0Mon, 12 Aug 2013 12:12:07 +0100\0" + "Subject\0Re: [lm-sensors] [PATCH v2] iio: Add tmp006 IR temperature sensor\0" + "Date\0Mon, 12 Aug 2013 10:14:49 +0000\0" "To\0Peter Meerwald <pmeerw@pmeerw.net>\0" "Cc\0linux-iio@vger.kernel.org" Grygorii Strashko <grygorii.strashko@ti.com> @@ -189,13 +189,13 @@ "> +\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\t/* LSB is 156.25 nV */\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 = sign_extend32(ret, 15);\n" - "> +\t\t} else if (channel->type == IIO_TEMP) {\n" + "> +\t\t} else if (channel->type = IIO_TEMP) {\n" "> +\t\t\t/* LSB is 0.03125 degrees Celsius */\n" "> +\t\t\tret = tmp006_read_measurement(data, TMP006_TAMBIENT);\n" "> +\t\t\tif (ret < 0)\n" @@ -206,10 +206,10 @@ "> +\t\t}\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" @@ -304,7 +304,7 @@ "> +\tif (did < 0)\n" "> +\t\treturn false;\n" "> +\n" - "> +\treturn mid == MANUFACTURER_MAGIC && did == DEVICE_MAGIC;\n" + "> +\treturn mid = MANUFACTURER_MAGIC && did = DEVICE_MAGIC;\n" "> +}\n" "> +\n" "> +static int tmp006_probe(struct i2c_client *client,\n" @@ -399,6 +399,11 @@ "> +MODULE_AUTHOR(\"Peter Meerwald <pmeerw@pmeerw.net>\");\n" "> +MODULE_DESCRIPTION(\"TI TMP006 IR thermopile 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 -25191a60b04407ea82075b0dc60f7e64c98f1fb87dc73e92245a608fd63f3a50 +a8842572d1cfe11f635beb14000652b3c24e53a710a0ce13764ea311885515a8
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.