summaryrefslogtreecommitdiff
path: root/drivers/w1/w1_family.h
diff options
context:
space:
mode:
authorScott Alfter <scott@alfter.us>2014-06-17 20:42:05 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-19 17:45:14 -0700
commit94859308a21b2bbf3d7c48789513c0c4a9ea7de1 (patch)
treea929e9e6f3dd3d81deeee65c6eb221c8488435a1 /drivers/w1/w1_family.h
parent7242d42ace30825553eabd424b41b03136d37faa (diff)
w1: new w1_ds2406 driver
Some preliminary work at making use of this driver led me to implement CRC-16 checks on read and write to deal with the occasional glitchiness of the 1-Wire bus. The revised driver (attached) returns an I/O error if the CRC check fails. When reading the chip's state, either you get a valid indication or you get an I/O error. When changing its state, either the change is successful or an I/O error is returned. Signed-off-by: Scott Alfter <scott@alfter.us> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/w1_family.h')
-rw-r--r--drivers/w1/w1_family.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/w1/w1_family.h b/drivers/w1/w1_family.h
index 26ca1343055b..0d18365b61ad 100644
--- a/drivers/w1/w1_family.h
+++ b/drivers/w1/w1_family.h
@@ -40,6 +40,7 @@
#define W1_FAMILY_DS2760 0x30
#define W1_FAMILY_DS2780 0x32
#define W1_FAMILY_DS2413 0x3A
+#define W1_FAMILY_DS2406 0x12
#define W1_THERM_DS1825 0x3B
#define W1_FAMILY_DS2781 0x3D
#define W1_THERM_DS28EA00 0x42