diff options
Diffstat (limited to 'drivers/w1/w1_family.h')
-rw-r--r-- | drivers/w1/w1_family.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/w1/w1_family.h b/drivers/w1/w1_family.h index 03a2de7a601f..b26da01bbc38 100644 --- a/drivers/w1/w1_family.h +++ b/drivers/w1/w1_family.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * w1_family.h | 2 | * w1_family.h |
3 | * | 3 | * |
4 | * Copyright (c) 2004 Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 4 | * Copyright (c) 2004 Evgeniy Polyakov <johnpol@2ka.mipt.ru> |
5 | * | 5 | * |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -27,27 +27,27 @@ | |||
27 | #include <asm/atomic.h> | 27 | #include <asm/atomic.h> |
28 | 28 | ||
29 | #define W1_FAMILY_DEFAULT 0 | 29 | #define W1_FAMILY_DEFAULT 0 |
30 | #define W1_FAMILY_THERM 0x10 | 30 | #define W1_FAMILY_SMEM_01 0x01 |
31 | #define W1_FAMILY_SMEM 0x01 | 31 | #define W1_FAMILY_SMEM_81 0x81 |
32 | #define W1_THERM_DS18S20 0x10 | ||
33 | #define W1_THERM_DS1822 0x22 | ||
34 | #define W1_THERM_DS18B20 0x28 | ||
32 | 35 | ||
33 | #define MAXNAMELEN 32 | 36 | #define MAXNAMELEN 32 |
34 | 37 | ||
35 | struct w1_family_ops | 38 | struct w1_family_ops |
36 | { | 39 | { |
37 | ssize_t (* rname)(struct device *, char *); | 40 | ssize_t (* rname)(struct device *, struct device_attribute *, char *); |
38 | ssize_t (* rbin)(struct kobject *, char *, loff_t, size_t); | 41 | ssize_t (* rbin)(struct kobject *, char *, loff_t, size_t); |
39 | |||
40 | ssize_t (* rval)(struct device *, char *); | ||
41 | unsigned char rvalname[MAXNAMELEN]; | ||
42 | }; | 42 | }; |
43 | 43 | ||
44 | struct w1_family | 44 | struct w1_family |
45 | { | 45 | { |
46 | struct list_head family_entry; | 46 | struct list_head family_entry; |
47 | u8 fid; | 47 | u8 fid; |
48 | 48 | ||
49 | struct w1_family_ops *fops; | 49 | struct w1_family_ops *fops; |
50 | 50 | ||
51 | atomic_t refcnt; | 51 | atomic_t refcnt; |
52 | u8 need_exit; | 52 | u8 need_exit; |
53 | }; | 53 | }; |