diff for duplicates of <565D3513.7050905@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index f3e1901..efac262 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -81,7 +81,7 @@ You should use a value outside the value range, ie outside > struct tmp102 *tmp102 = tmp102_update_device(dev); > > + /* Is it too early even to return a conversion? */ -> + if (tmp102->temp[0] == TMP102_NOTREADY) { +> + if (tmp102->temp[0] = TMP102_NOTREADY) { > + dev_dbg(dev, "%s: Conversion not ready yet..\n", __func__); > + return -EAGAIN; @@ -101,7 +101,7 @@ when reading the data, as suggested above. > struct tmp102 *tmp102 = tmp102_update_device(dev); > > + /* Is it too early even to return a read? */ -> + if (tmp102->temp[sda->index] == TMP102_NOTREADY) +> + if (tmp102->temp[sda->index] = TMP102_NOTREADY) > + return -EAGAIN; > + > return sprintf(buf, "%d\n", tmp102->temp[sda->index]); @@ -121,3 +121,9 @@ when reading the data, as suggested above. > > hwmon_dev = hwmon_device_register_with_groups(dev, client->name, > + + +_______________________________________________ +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 fc0b6e7..17e4b5c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01448943955-2385-1-git-send-email-nm@ti.com\0" "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [PATCH] hwmon: (tmp102) Force wait for conversion time for the first valid data\0" - "Date\0Mon, 30 Nov 2015 21:50:11 -0800\0" + "Subject\0Re: [lm-sensors] [PATCH] hwmon: (tmp102) Force wait for conversion time for the first valid data\0" + "Date\0Tue, 01 Dec 2015 05:50:11 +0000\0" "To\0Nishanth Menon <nm@ti.com>" " Jean Delvare <jdelvare@suse.com>\0" "Cc\0linux-kernel@vger.kernel.org" @@ -94,7 +94,7 @@ "> \tstruct tmp102 *tmp102 = tmp102_update_device(dev);\n" ">\n" "> +\t/* Is it too early even to return a conversion? */\n" - "> +\tif (tmp102->temp[0] == TMP102_NOTREADY) {\n" + "> +\tif (tmp102->temp[0] = TMP102_NOTREADY) {\n" "> +\t\tdev_dbg(dev, \"%s: Conversion not ready yet..\\n\", __func__);\n" "> +\t\treturn -EAGAIN;\n" "\n" @@ -114,7 +114,7 @@ "> \tstruct tmp102 *tmp102 = tmp102_update_device(dev);\n" ">\n" "> +\t/* Is it too early even to return a read? */\n" - "> +\tif (tmp102->temp[sda->index] == TMP102_NOTREADY)\n" + "> +\tif (tmp102->temp[sda->index] = TMP102_NOTREADY)\n" "> +\t\treturn -EAGAIN;\n" "> +\n" "> \treturn sprintf(buf, \"%d\\n\", tmp102->temp[sda->index]);\n" @@ -133,6 +133,12 @@ "> \tmutex_init(&tmp102->lock);\n" ">\n" "> \thwmon_dev = hwmon_device_register_with_groups(dev, client->name,\n" - > + ">\n" + "\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -0389113e570d14ceabb931032a03f843dc84a894a9d944334aa2c49cef5c8e39 +6fa0634e63b39c257fcec931fd53ee0a8854a672d8844788c0284ac72ff2eb24
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.