diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:43:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:34 -0400 |
commit | 3fd3c0a5f53a0f9d8987b90acbd84f7dd8ef606e (patch) | |
tree | 46a9050abe4c11375a78b51f07e524682722bf70 /drivers/s390/char/raw3270.c | |
parent | e404e274f62665f3333d6a539d0d3701f678a598 (diff) |
[PATCH] Driver Core: drivers/char/raw3270.c - drivers/net/netiucv.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/s390/char/raw3270.c')
-rw-r--r-- | drivers/s390/char/raw3270.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 8e16a9716686..d5eefeaba50c 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -1084,7 +1084,7 @@ raw3270_probe (struct ccw_device *cdev) | |||
1084 | * Additional attributes for a 3270 device | 1084 | * Additional attributes for a 3270 device |
1085 | */ | 1085 | */ |
1086 | static ssize_t | 1086 | static ssize_t |
1087 | raw3270_model_show(struct device *dev, char *buf) | 1087 | raw3270_model_show(struct device *dev, struct device_attribute *attr, char *buf) |
1088 | { | 1088 | { |
1089 | return snprintf(buf, PAGE_SIZE, "%i\n", | 1089 | return snprintf(buf, PAGE_SIZE, "%i\n", |
1090 | ((struct raw3270 *) dev->driver_data)->model); | 1090 | ((struct raw3270 *) dev->driver_data)->model); |
@@ -1092,7 +1092,7 @@ raw3270_model_show(struct device *dev, char *buf) | |||
1092 | static DEVICE_ATTR(model, 0444, raw3270_model_show, 0); | 1092 | static DEVICE_ATTR(model, 0444, raw3270_model_show, 0); |
1093 | 1093 | ||
1094 | static ssize_t | 1094 | static ssize_t |
1095 | raw3270_rows_show(struct device *dev, char *buf) | 1095 | raw3270_rows_show(struct device *dev, struct device_attribute *attr, char *buf) |
1096 | { | 1096 | { |
1097 | return snprintf(buf, PAGE_SIZE, "%i\n", | 1097 | return snprintf(buf, PAGE_SIZE, "%i\n", |
1098 | ((struct raw3270 *) dev->driver_data)->rows); | 1098 | ((struct raw3270 *) dev->driver_data)->rows); |
@@ -1100,7 +1100,7 @@ raw3270_rows_show(struct device *dev, char *buf) | |||
1100 | static DEVICE_ATTR(rows, 0444, raw3270_rows_show, 0); | 1100 | static DEVICE_ATTR(rows, 0444, raw3270_rows_show, 0); |
1101 | 1101 | ||
1102 | static ssize_t | 1102 | static ssize_t |
1103 | raw3270_columns_show(struct device *dev, char *buf) | 1103 | raw3270_columns_show(struct device *dev, struct device_attribute *attr, char *buf) |
1104 | { | 1104 | { |
1105 | return snprintf(buf, PAGE_SIZE, "%i\n", | 1105 | return snprintf(buf, PAGE_SIZE, "%i\n", |
1106 | ((struct raw3270 *) dev->driver_data)->cols); | 1106 | ((struct raw3270 *) dev->driver_data)->cols); |