diff for duplicates of <4D21ADCB.4070206@cam.ac.uk> diff --git a/a/1.txt b/N1/1.txt index a263c00..25ebe15 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -219,11 +219,13 @@ If it is less than 0, we have an error that ought to be correctly handled. The correct option is to pass this all the way up to userspace. > + if (result >= 0) -> + sht21->temperature > + sht21_temp_ticks_to_millicelsius(swab16(result)); +> + sht21->temperature = +> + sht21_temp_ticks_to_millicelsius(swab16(result)); > + result = i2c_smbus_read_word_data(client, > + SHT21_TRIG_RH_MEASUREMENT_HM); > + if (result >= 0) -> + sht21->humidity > + sht21_rh_ticks_to_per_cent_mille(swab16(result)); +> + sht21->humidity = +> + sht21_rh_ticks_to_per_cent_mille(swab16(result)); > + sht21->last_update = jiffies; > + sht21->valid = 1; > + } @@ -718,9 +720,3 @@ ditto > +MODULE_DESCRIPTION("Sensirion SHT21 humidity and temperature 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 8e7da54..91ca469 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\04D1DF097.1080200@cam.ac.uk\0" "ref\020110103081448.f96c413e.urs.fleisch@gmail.com\0" "From\0Jonathan Cameron <jic23@cam.ac.uk>\0" - "Subject\0Re: [lm-sensors] [PATCH] hwmon: driver for Sensirion SHT21 humidity\0" + "Subject\0Re: [PATCH] hwmon: driver for Sensirion SHT21 humidity and temperature sensor\0" "Date\0Mon, 03 Jan 2011 11:06:51 +0000\0" "To\0Urs Fleisch <urs.fleisch@gmail.com>\0" "Cc\0linux-kernel@vger.kernel.org" @@ -232,11 +232,13 @@ "handled. The correct option is to pass this all the way up to userspace.\n" "\n" "> +\t\tif (result >= 0)\n" - "> +\t\t\tsht21->temperature > +\t\t\t sht21_temp_ticks_to_millicelsius(swab16(result));\n" + "> +\t\t\tsht21->temperature =\n" + "> +\t\t\t sht21_temp_ticks_to_millicelsius(swab16(result));\n" "> +\t\tresult = i2c_smbus_read_word_data(client,\n" "> +\t\t\t\tSHT21_TRIG_RH_MEASUREMENT_HM);\n" "> +\t\tif (result >= 0)\n" - "> +\t\t\tsht21->humidity > +\t\t\t sht21_rh_ticks_to_per_cent_mille(swab16(result));\n" + "> +\t\t\tsht21->humidity =\n" + "> +\t\t\t sht21_rh_ticks_to_per_cent_mille(swab16(result));\n" "> +\t\tsht21->last_update = jiffies;\n" "> +\t\tsht21->valid = 1;\n" "> +\t}\n" @@ -730,12 +732,6 @@ "> +MODULE_AUTHOR(\"Urs Fleisch <urs.fleisch@sensirion.com>\");\n" "> +MODULE_DESCRIPTION(\"Sensirion SHT21 humidity and temperature sensor driver\");\n" "> +MODULE_LICENSE(\"GPL\");\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 + > -30735525c2c0931d3a28bdb872b13d2e382d091faff468dc0951b5efd68eebf5 +804d72db925bd4547a281b5884c39ca85e2b2594ed4fecdc651d46787d4e87ec
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.