diff options
author | Christian Glindkamp <christian.glindkamp@taskit.de> | 2011-07-26 19:08:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 19:49:45 -0400 |
commit | f7b1371eb6b3ff72e38de220663b22f7cc9df296 (patch) | |
tree | 77befe95ffea3a30a5ca70ed2c7c18338516a779 /drivers/w1 | |
parent | c958474b6d721ff09e4abf143efc07365d63aea5 (diff) |
drivers/w1/slaves/w1_therm.c: add support for DS28EA00
Signed-off-by: Christian Glindkamp <christian.glindkamp@taskit.de>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r-- | drivers/w1/slaves/w1_therm.c | 9 | ||||
-rw-r--r-- | drivers/w1/w1_family.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/w1/slaves/w1_therm.c b/drivers/w1/slaves/w1_therm.c index 17726a05a0a6..402928b135d1 100644 --- a/drivers/w1/slaves/w1_therm.c +++ b/drivers/w1/slaves/w1_therm.c | |||
@@ -86,6 +86,11 @@ static struct w1_family w1_therm_family_DS1822 = { | |||
86 | .fops = &w1_therm_fops, | 86 | .fops = &w1_therm_fops, |
87 | }; | 87 | }; |
88 | 88 | ||
89 | static struct w1_family w1_therm_family_DS28EA00 = { | ||
90 | .fid = W1_THERM_DS28EA00, | ||
91 | .fops = &w1_therm_fops, | ||
92 | }; | ||
93 | |||
89 | struct w1_therm_family_converter | 94 | struct w1_therm_family_converter |
90 | { | 95 | { |
91 | u8 broken; | 96 | u8 broken; |
@@ -111,6 +116,10 @@ static struct w1_therm_family_converter w1_therm_families[] = { | |||
111 | .f = &w1_therm_family_DS18B20, | 116 | .f = &w1_therm_family_DS18B20, |
112 | .convert = w1_DS18B20_convert_temp | 117 | .convert = w1_DS18B20_convert_temp |
113 | }, | 118 | }, |
119 | { | ||
120 | .f = &w1_therm_family_DS28EA00, | ||
121 | .convert = w1_DS18B20_convert_temp | ||
122 | }, | ||
114 | }; | 123 | }; |
115 | 124 | ||
116 | static inline int w1_DS18B20_convert_temp(u8 rom[9]) | 125 | static inline int w1_DS18B20_convert_temp(u8 rom[9]) |
diff --git a/drivers/w1/w1_family.h b/drivers/w1/w1_family.h index 97479ae70b9c..89a0b1f2794b 100644 --- a/drivers/w1/w1_family.h +++ b/drivers/w1/w1_family.h | |||
@@ -38,6 +38,7 @@ | |||
38 | #define W1_EEPROM_DS2431 0x2D | 38 | #define W1_EEPROM_DS2431 0x2D |
39 | #define W1_FAMILY_DS2760 0x30 | 39 | #define W1_FAMILY_DS2760 0x30 |
40 | #define W1_FAMILY_DS2780 0x32 | 40 | #define W1_FAMILY_DS2780 0x32 |
41 | #define W1_THERM_DS28EA00 0x42 | ||
41 | 42 | ||
42 | #define MAXNAMELEN 32 | 43 | #define MAXNAMELEN 32 |
43 | 44 | ||