aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-05-27 13:58:57 -0400
committerJean Delvare <khali@linux-fr.org>2010-05-27 13:58:57 -0400
commitcff37c9e82e022068840b3d33167e64c6a0ecc06 (patch)
tree8ebce4d6d8cbc16a661e6548515d02f43d66ad58 /Documentation/hwmon
parentbeb1b6bbf2b448b97b9611200eb4b5a555336c60 (diff)
hwmon: (tmp102) Various fixes
Fixes from my driver review: http://lists.lm-sensors.org/pipermail/lm-sensors/2010-March/028051.html Only the small changes are in there, more important changes will come later separately as time permits. * Drop the remnants of the now gone detect function * The TMP102 has no known compatible chip * Include the right header files * Clarify why byte swapping of register values is needed * Strip resolution info bit from temperature register value * Set cache lifetime to 1/3 second * Don't arbitrarily reject limit values; clamp as needed * Make limit writing unconditional * Don't check for transaction types the driver doesn't use * Properly check for error when setting configuration * Report error on failed probe * Make the driver load automatically where needed * Various other minor fixes Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Steven King <sfking@fdwdc.com>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r--Documentation/hwmon/tmp1029
1 files changed, 4 insertions, 5 deletions
diff --git a/Documentation/hwmon/tmp102 b/Documentation/hwmon/tmp102
index 239dded8539f..8454a7763122 100644
--- a/Documentation/hwmon/tmp102
+++ b/Documentation/hwmon/tmp102
@@ -4,7 +4,7 @@ Kernel driver tmp102
4Supported chips: 4Supported chips:
5 * Texas Instruments TMP102 5 * Texas Instruments TMP102
6 Prefix: 'tmp102' 6 Prefix: 'tmp102'
7 Addresses scanned: I2C 0x48 0x49 0x4a 0x4b 7 Addresses scanned: none
8 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp102.html 8 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp102.html
9 9
10Author: 10Author:
@@ -15,13 +15,12 @@ Description
15 15
16The Texas Instruments TMP102 implements one temperature sensor. Limits can be 16The Texas Instruments TMP102 implements one temperature sensor. Limits can be
17set through the Overtemperature Shutdown register and Hysteresis register. The 17set through the Overtemperature Shutdown register and Hysteresis register. The
18sensor is accurate to 0.5 degrees over the range of -25 to +85 C, and to 1.0 18sensor is accurate to 0.5 degree over the range of -25 to +85 C, and to 1.0
19degrees from -40 to +125 C. Resolution of the sensor is 0.0625 degree. The 19degree from -40 to +125 C. Resolution of the sensor is 0.0625 degree. The
20operating temperature has a minimum of -55 C and a maximum of +150 C. 20operating temperature has a minimum of -55 C and a maximum of +150 C.
21 21
22The TMP102 has a programmable update rate that can select between 8, 4, 1, and 22The TMP102 has a programmable update rate that can select between 8, 4, 1, and
230.5 Hz. (Currently the driver only supports the default of 4 Hz). 230.5 Hz. (Currently the driver only supports the default of 4 Hz).
24 24
25The driver provides the common sysfs-interface for temperatures (see 25The driver provides the common sysfs-interface for temperatures (see
26/Documentation/hwmon/sysfs-interface under Temperatures). 26Documentation/hwmon/sysfs-interface under Temperatures).
27