summaryrefslogtreecommitdiffstats
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 08:19:36 -0700
commit82c7465b4dd013d19858bfeac084849ae17682c0 (patch)
treeaf6828f4e6cac12153100b30fbe126fe0989e1a8 /Documentation/hwmon
parentcc15c7ebb424e45ba2c5ceecbe52d025219ee970 (diff)
downloadblackbird-op-linux-82c7465b4dd013d19858bfeac084849ae17682c0.tar.gz
blackbird-op-linux-82c7465b4dd013d19858bfeac084849ae17682c0.zip
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 d1939b25eb16..02850bdfac18 100644
--- a/Documentation/hwmon/sht15
+++ b/Documentation/hwmon/sht15
@@ -5,6 +5,7 @@ Authors:
* Wouter Horre
* Jonathan Cameron
* Vivien Didelot <vivien.didelot@savoirfairelinux.com>
+ * Jerome Oufella <jerome.oufella@savoirfairelinux.com>
Supported chips:
* Sensirion SHT10
@@ -44,11 +45,17 @@ measurement and decrease power consumption, while loosing on precision.
Some options may be set directly in the sht15_platform_data structure
or via sysfs attributes.
-Note: The regulator supply name is set to "vcc".
+Notes:
+ * The regulator supply name is set to "vcc".
+ * If a CRC validation fails, a soft reset command is sent, which resets
+ status register to its hardware default value, but the driver will try to
+ restore the previous device configuration.
Platform data
-------------
+* checksum:
+ set it to true to enable CRC validation of the readings (default to false).
* no_otp_reload:
flag to indicate not to reload from OTP (default to false).
* low_resolution:
OpenPOWER on IntegriCloud