diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:42:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:33 -0400 |
commit | a5099cfc2e82240b0a3e72ad79a5969d5af1a7dc (patch) | |
tree | aca3273e927a4d65f8f5fdf4cf5d8283969a3b43 /drivers/i2c/chips/pcf8574.c | |
parent | 8627f9ba531269d8850919c62af1b017438e2e79 (diff) |
[PATCH] Driver Core: drivers/i2c/chips/pc87360.c - w83627hf.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/chips/pcf8574.c')
-rw-r--r-- | drivers/i2c/chips/pcf8574.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/chips/pcf8574.c b/drivers/i2c/chips/pcf8574.c index 48b4e22eaffe..4956e9effd75 100644 --- a/drivers/i2c/chips/pcf8574.c +++ b/drivers/i2c/chips/pcf8574.c | |||
@@ -76,7 +76,7 @@ static struct i2c_driver pcf8574_driver = { | |||
76 | }; | 76 | }; |
77 | 77 | ||
78 | /* following are the sysfs callback functions */ | 78 | /* following are the sysfs callback functions */ |
79 | static ssize_t show_read(struct device *dev, char *buf) | 79 | static ssize_t show_read(struct device *dev, struct device_attribute *attr, char *buf) |
80 | { | 80 | { |
81 | struct i2c_client *client = to_i2c_client(dev); | 81 | struct i2c_client *client = to_i2c_client(dev); |
82 | struct pcf8574_data *data = i2c_get_clientdata(client); | 82 | struct pcf8574_data *data = i2c_get_clientdata(client); |
@@ -86,13 +86,13 @@ static ssize_t show_read(struct device *dev, char *buf) | |||
86 | 86 | ||
87 | static DEVICE_ATTR(read, S_IRUGO, show_read, NULL); | 87 | static DEVICE_ATTR(read, S_IRUGO, show_read, NULL); |
88 | 88 | ||
89 | static ssize_t show_write(struct device *dev, char *buf) | 89 | static ssize_t show_write(struct device *dev, struct device_attribute *attr, char *buf) |
90 | { | 90 | { |
91 | struct pcf8574_data *data = i2c_get_clientdata(to_i2c_client(dev)); | 91 | struct pcf8574_data *data = i2c_get_clientdata(to_i2c_client(dev)); |
92 | return sprintf(buf, "%u\n", data->write); | 92 | return sprintf(buf, "%u\n", data->write); |
93 | } | 93 | } |
94 | 94 | ||
95 | static ssize_t set_write(struct device *dev, const char *buf, | 95 | static ssize_t set_write(struct device *dev, struct device_attribute *attr, const char *buf, |
96 | size_t count) | 96 | size_t count) |
97 | { | 97 | { |
98 | struct i2c_client *client = to_i2c_client(dev); | 98 | struct i2c_client *client = to_i2c_client(dev); |