aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorJerome Oufella <jerome.oufella@savoirfairelinux.com>2011-04-12 15:34:39 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-05-19 11:19:36 -0400
commit82c7465b4dd013d19858bfeac084849ae17682c0 (patch)
treeaf6828f4e6cac12153100b30fbe126fe0989e1a8 /Documentation/hwmon
parentcc15c7ebb424e45ba2c5ceecbe52d025219ee970 (diff)
hwmon: (sht15) add support for CRC validation
The sht15 sensor allows validating exchanges to and from the device using a crc8 function. An utility function to reverse a byte has also been added. Signed-off-by: Jerome Oufella <jerome.oufella@savoirfairelinux.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r--Documentation/hwmon/sht159
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/hwmon/sht15 b/Documentation/hwmon/sht15
index d1939b25eb1..02850bdfac1 100644
--- a/Documentation/hwmon/sht15
+++ b/Documentation/hwmon/sht15
@@ -5,6 +5,7 @@ Authors:
5 * Wouter Horre 5 * Wouter Horre
6 * Jonathan Cameron 6 * Jonathan Cameron
7 * Vivien Didelot <vivien.didelot@savoirfairelinux.com> 7 * Vivien Didelot <vivien.didelot@savoirfairelinux.com>
8 * Jerome Oufella <jerome.oufella@savoirfairelinux.com>
8 9
9Supported chips: 10Supported chips:
10 * Sensirion SHT10 11 * Sensirion SHT10
@@ -44,11 +45,17 @@ measurement and decrease power consumption, while loosing on precision.
44Some options may be set directly in the sht15_platform_data structure 45Some options may be set directly in the sht15_platform_data structure
45or via sysfs attributes. 46or via sysfs attributes.
46 47
47Note: The regulator supply name is set to "vcc". 48Notes:
49 * The regulator supply name is set to "vcc".
50 * If a CRC validation fails, a soft reset command is sent, which resets
51 status register to its hardware default value, but the driver will try to
52 restore the previous device configuration.
48 53
49Platform data 54Platform data
50------------- 55-------------
51 56
57* checksum:
58 set it to true to enable CRC validation of the readings (default to false).
52* no_otp_reload: 59* no_otp_reload:
53 flag to indicate not to reload from OTP (default to false). 60 flag to indicate not to reload from OTP (default to false).
54* low_resolution: 61* low_resolution: