Skip to content

Commit f7b1371

Browse files
cglindkamptorvalds
authored andcommitted
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>
1 parent c958474 commit f7b1371

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎drivers/w1/slaves/w1_therm.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ static struct w1_family w1_therm_family_DS1822 = {
8686
.fops = &w1_therm_fops,
8787
};
8888

89+
static struct w1_family w1_therm_family_DS28EA00 = {
90+
.fid = W1_THERM_DS28EA00,
91+
.fops = &w1_therm_fops,
92+
};
93+
8994
struct w1_therm_family_converter
9095
{
9196
u8 broken;
@@ -111,6 +116,10 @@ static struct w1_therm_family_converter w1_therm_families[] = {
111116
.f = &w1_therm_family_DS18B20,
112117
.convert = w1_DS18B20_convert_temp
113118
},
119+
{
120+
.f = &w1_therm_family_DS28EA00,
121+
.convert = w1_DS18B20_convert_temp
122+
},
114123
};
115124

116125
static inline int w1_DS18B20_convert_temp(u8 rom[9])

‎drivers/w1/w1_family.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#define W1_EEPROM_DS2431 0x2D
3939
#define W1_FAMILY_DS2760 0x30
4040
#define W1_FAMILY_DS2780 0x32
41+
#define W1_THERM_DS28EA00 0x42
4142

4243
#define MAXNAMELEN 32
4344

0 commit comments

Comments
 (0)