aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/slaves/w1_therm.c9
-rw-r--r--drivers/w1/w1_family.h1
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
89static struct w1_family w1_therm_family_DS28EA00 = {
90 .fid = W1_THERM_DS28EA00,
91 .fops = &w1_therm_fops,
92};
93
89struct w1_therm_family_converter 94struct 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
116static inline int w1_DS18B20_convert_temp(u8 rom[9]) 125static 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