diff options
Diffstat (limited to 'drivers/w1/w1_therm.c')
-rw-r--r-- | drivers/w1/w1_therm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/w1/w1_therm.c b/drivers/w1/w1_therm.c index 0b1817890503..70310f7a722e 100644 --- a/drivers/w1/w1_therm.c +++ b/drivers/w1/w1_therm.c | |||
@@ -42,8 +42,8 @@ static u8 bad_roms[][9] = { | |||
42 | {} | 42 | {} |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static ssize_t w1_therm_read_name(struct device *, char *); | 45 | static ssize_t w1_therm_read_name(struct device *, struct device_attribute *attr, char *); |
46 | static ssize_t w1_therm_read_temp(struct device *, char *); | 46 | static ssize_t w1_therm_read_temp(struct device *, struct device_attribute *attr, char *); |
47 | static ssize_t w1_therm_read_bin(struct kobject *, char *, loff_t, size_t); | 47 | static ssize_t w1_therm_read_bin(struct kobject *, char *, loff_t, size_t); |
48 | 48 | ||
49 | static struct w1_family_ops w1_therm_fops = { | 49 | static struct w1_family_ops w1_therm_fops = { |
@@ -53,7 +53,7 @@ static struct w1_family_ops w1_therm_fops = { | |||
53 | .rvalname = "temp1_input", | 53 | .rvalname = "temp1_input", |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static ssize_t w1_therm_read_name(struct device *dev, char *buf) | 56 | static ssize_t w1_therm_read_name(struct device *dev, struct device_attribute *attr, char *buf) |
57 | { | 57 | { |
58 | struct w1_slave *sl = container_of(dev, struct w1_slave, dev); | 58 | struct w1_slave *sl = container_of(dev, struct w1_slave, dev); |
59 | 59 | ||
@@ -77,7 +77,7 @@ static inline int w1_convert_temp(u8 rom[9]) | |||
77 | return t; | 77 | return t; |
78 | } | 78 | } |
79 | 79 | ||
80 | static ssize_t w1_therm_read_temp(struct device *dev, char *buf) | 80 | static ssize_t w1_therm_read_temp(struct device *dev, struct device_attribute *attr, char *buf) |
81 | { | 81 | { |
82 | struct w1_slave *sl = container_of(dev, struct w1_slave, dev); | 82 | struct w1_slave *sl = container_of(dev, struct w1_slave, dev); |
83 | 83 | ||