diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:41:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:32 -0400 |
commit | 74880c063b06efd103c924abfe19d9d8fa4864c4 (patch) | |
tree | 7d0995426cec1f3577a5f8e5f61ada43a0df9813 /drivers/eisa | |
parent | ff381d2223a30ee70752791fd9c3588d8f1cab77 (diff) |
[PATCH] Driver Core: drivers/base - drivers/i2c/chips/adm1026.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/eisa')
-rw-r--r-- | drivers/eisa/eisa-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c index 6381ba53853c..1937743c8e29 100644 --- a/drivers/eisa/eisa-bus.c +++ b/drivers/eisa/eisa-bus.c | |||
@@ -149,7 +149,7 @@ void eisa_driver_unregister (struct eisa_driver *edrv) | |||
149 | driver_unregister (&edrv->driver); | 149 | driver_unregister (&edrv->driver); |
150 | } | 150 | } |
151 | 151 | ||
152 | static ssize_t eisa_show_sig (struct device *dev, char *buf) | 152 | static ssize_t eisa_show_sig (struct device *dev, struct device_attribute *attr, char *buf) |
153 | { | 153 | { |
154 | struct eisa_device *edev = to_eisa_device (dev); | 154 | struct eisa_device *edev = to_eisa_device (dev); |
155 | return sprintf (buf,"%s\n", edev->id.sig); | 155 | return sprintf (buf,"%s\n", edev->id.sig); |
@@ -157,7 +157,7 @@ static ssize_t eisa_show_sig (struct device *dev, char *buf) | |||
157 | 157 | ||
158 | static DEVICE_ATTR(signature, S_IRUGO, eisa_show_sig, NULL); | 158 | static DEVICE_ATTR(signature, S_IRUGO, eisa_show_sig, NULL); |
159 | 159 | ||
160 | static ssize_t eisa_show_state (struct device *dev, char *buf) | 160 | static ssize_t eisa_show_state (struct device *dev, struct device_attribute *attr, char *buf) |
161 | { | 161 | { |
162 | struct eisa_device *edev = to_eisa_device (dev); | 162 | struct eisa_device *edev = to_eisa_device (dev); |
163 | return sprintf (buf,"%d\n", edev->state & EISA_CONFIG_ENABLED); | 163 | return sprintf (buf,"%d\n", edev->state & EISA_CONFIG_ENABLED); |