diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:44:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:35 -0400 |
commit | 060b8845e6bea938d65ad6f89e83507e5ff4fec4 (patch) | |
tree | ba82ce7d7a532b045f02e29788ece53d6be693e6 /drivers/zorro/zorro-sysfs.c | |
parent | 10523b3b82456e416cbaffcc24ea2246980aa746 (diff) |
[PATCH] Driver Core: drivers/usb/input/aiptek.c - drivers/zorro/zorro-sysfs.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/zorro/zorro-sysfs.c')
-rw-r--r-- | drivers/zorro/zorro-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/zorro/zorro-sysfs.c b/drivers/zorro/zorro-sysfs.c index dad03fc33a44..04ca8840acf1 100644 --- a/drivers/zorro/zorro-sysfs.c +++ b/drivers/zorro/zorro-sysfs.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /* show configuration fields */ | 21 | /* show configuration fields */ |
22 | #define zorro_config_attr(name, field, format_string) \ | 22 | #define zorro_config_attr(name, field, format_string) \ |
23 | static ssize_t \ | 23 | static ssize_t \ |
24 | show_##name(struct device *dev, char *buf) \ | 24 | show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
25 | { \ | 25 | { \ |
26 | struct zorro_dev *z; \ | 26 | struct zorro_dev *z; \ |
27 | \ | 27 | \ |
@@ -36,7 +36,7 @@ zorro_config_attr(serial, rom.er_SerialNumber, "0x%08x\n"); | |||
36 | zorro_config_attr(slotaddr, slotaddr, "0x%04x\n"); | 36 | zorro_config_attr(slotaddr, slotaddr, "0x%04x\n"); |
37 | zorro_config_attr(slotsize, slotsize, "0x%04x\n"); | 37 | zorro_config_attr(slotsize, slotsize, "0x%04x\n"); |
38 | 38 | ||
39 | static ssize_t zorro_show_resource(struct device *dev, char *buf) | 39 | static ssize_t zorro_show_resource(struct device *dev, struct device_attribute *attr, char *buf) |
40 | { | 40 | { |
41 | struct zorro_dev *z = to_zorro_dev(dev); | 41 | struct zorro_dev *z = to_zorro_dev(dev); |
42 | 42 | ||