diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-22 00:01:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-22 00:51:59 -0400 |
commit | 6f637a6494a1872c613fe68f64ea4831c3e5b037 (patch) | |
tree | a18368e908290ca7bdf3430b0b5b9cbc0131da5b /drivers/i2c/chips/atxp1.c | |
parent | 563db2fe9e0843da9d1d85d824f022be0ada4a3c (diff) |
[PATCH] I2C: fix up some sysfs device attribute file parameters
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/chips/atxp1.c')
-rw-r--r-- | drivers/i2c/chips/atxp1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/i2c/chips/atxp1.c b/drivers/i2c/chips/atxp1.c index 57b0bdde38b2..5c6597aa2c7f 100644 --- a/drivers/i2c/chips/atxp1.c +++ b/drivers/i2c/chips/atxp1.c | |||
@@ -99,7 +99,7 @@ static struct atxp1_data * atxp1_update_device(struct device *dev) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | /* sys file functions for cpu0_vid */ | 101 | /* sys file functions for cpu0_vid */ |
102 | static ssize_t atxp1_showvcore(struct device *dev, char *buf) | 102 | static ssize_t atxp1_showvcore(struct device *dev, struct device_attribute *attr, char *buf) |
103 | { | 103 | { |
104 | int size; | 104 | int size; |
105 | struct atxp1_data *data; | 105 | struct atxp1_data *data; |
@@ -111,7 +111,7 @@ static ssize_t atxp1_showvcore(struct device *dev, char *buf) | |||
111 | return size; | 111 | return size; |
112 | } | 112 | } |
113 | 113 | ||
114 | static ssize_t atxp1_storevcore(struct device *dev, const char* buf, size_t count) | 114 | static ssize_t atxp1_storevcore(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
115 | { | 115 | { |
116 | struct atxp1_data *data; | 116 | struct atxp1_data *data; |
117 | struct i2c_client *client; | 117 | struct i2c_client *client; |
@@ -169,7 +169,7 @@ static ssize_t atxp1_storevcore(struct device *dev, const char* buf, size_t coun | |||
169 | static DEVICE_ATTR(cpu0_vid, S_IRUGO | S_IWUSR, atxp1_showvcore, atxp1_storevcore); | 169 | static DEVICE_ATTR(cpu0_vid, S_IRUGO | S_IWUSR, atxp1_showvcore, atxp1_storevcore); |
170 | 170 | ||
171 | /* sys file functions for GPIO1 */ | 171 | /* sys file functions for GPIO1 */ |
172 | static ssize_t atxp1_showgpio1(struct device *dev, char *buf) | 172 | static ssize_t atxp1_showgpio1(struct device *dev, struct device_attribute *attr, char *buf) |
173 | { | 173 | { |
174 | int size; | 174 | int size; |
175 | struct atxp1_data *data; | 175 | struct atxp1_data *data; |
@@ -181,7 +181,7 @@ static ssize_t atxp1_showgpio1(struct device *dev, char *buf) | |||
181 | return size; | 181 | return size; |
182 | } | 182 | } |
183 | 183 | ||
184 | static ssize_t atxp1_storegpio1(struct device *dev, const char* buf, size_t count) | 184 | static ssize_t atxp1_storegpio1(struct device *dev, struct device_attribute *attr, const char*buf, size_t count) |
185 | { | 185 | { |
186 | struct atxp1_data *data; | 186 | struct atxp1_data *data; |
187 | struct i2c_client *client; | 187 | struct i2c_client *client; |
@@ -211,7 +211,7 @@ static ssize_t atxp1_storegpio1(struct device *dev, const char* buf, size_t coun | |||
211 | static DEVICE_ATTR(gpio1, S_IRUGO | S_IWUSR, atxp1_showgpio1, atxp1_storegpio1); | 211 | static DEVICE_ATTR(gpio1, S_IRUGO | S_IWUSR, atxp1_showgpio1, atxp1_storegpio1); |
212 | 212 | ||
213 | /* sys file functions for GPIO2 */ | 213 | /* sys file functions for GPIO2 */ |
214 | static ssize_t atxp1_showgpio2(struct device *dev, char *buf) | 214 | static ssize_t atxp1_showgpio2(struct device *dev, struct device_attribute *attr, char *buf) |
215 | { | 215 | { |
216 | int size; | 216 | int size; |
217 | struct atxp1_data *data; | 217 | struct atxp1_data *data; |
@@ -223,7 +223,7 @@ static ssize_t atxp1_showgpio2(struct device *dev, char *buf) | |||
223 | return size; | 223 | return size; |
224 | } | 224 | } |
225 | 225 | ||
226 | static ssize_t atxp1_storegpio2(struct device *dev, const char* buf, size_t count) | 226 | static ssize_t atxp1_storegpio2(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
227 | { | 227 | { |
228 | struct atxp1_data *data; | 228 | struct atxp1_data *data; |
229 | struct i2c_client *client; | 229 | struct i2c_client *client; |