diff options
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/raw3270.c | 6 | ||||
-rw-r--r-- | drivers/s390/char/tape_core.c | 10 | ||||
-rw-r--r-- | drivers/s390/char/vmlogrdr.c | 12 |
3 files changed, 14 insertions, 14 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); |
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index e51046ab8adc..b4df4a515b12 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c | |||
@@ -107,7 +107,7 @@ busid_to_int(char *bus_id) | |||
107 | * replaced by a link to the cdev tree. | 107 | * replaced by a link to the cdev tree. |
108 | */ | 108 | */ |
109 | static ssize_t | 109 | static ssize_t |
110 | tape_medium_state_show(struct device *dev, char *buf) | 110 | tape_medium_state_show(struct device *dev, struct device_attribute *attr, char *buf) |
111 | { | 111 | { |
112 | struct tape_device *tdev; | 112 | struct tape_device *tdev; |
113 | 113 | ||
@@ -119,7 +119,7 @@ static | |||
119 | DEVICE_ATTR(medium_state, 0444, tape_medium_state_show, NULL); | 119 | DEVICE_ATTR(medium_state, 0444, tape_medium_state_show, NULL); |
120 | 120 | ||
121 | static ssize_t | 121 | static ssize_t |
122 | tape_first_minor_show(struct device *dev, char *buf) | 122 | tape_first_minor_show(struct device *dev, struct device_attribute *attr, char *buf) |
123 | { | 123 | { |
124 | struct tape_device *tdev; | 124 | struct tape_device *tdev; |
125 | 125 | ||
@@ -131,7 +131,7 @@ static | |||
131 | DEVICE_ATTR(first_minor, 0444, tape_first_minor_show, NULL); | 131 | DEVICE_ATTR(first_minor, 0444, tape_first_minor_show, NULL); |
132 | 132 | ||
133 | static ssize_t | 133 | static ssize_t |
134 | tape_state_show(struct device *dev, char *buf) | 134 | tape_state_show(struct device *dev, struct device_attribute *attr, char *buf) |
135 | { | 135 | { |
136 | struct tape_device *tdev; | 136 | struct tape_device *tdev; |
137 | 137 | ||
@@ -144,7 +144,7 @@ static | |||
144 | DEVICE_ATTR(state, 0444, tape_state_show, NULL); | 144 | DEVICE_ATTR(state, 0444, tape_state_show, NULL); |
145 | 145 | ||
146 | static ssize_t | 146 | static ssize_t |
147 | tape_operation_show(struct device *dev, char *buf) | 147 | tape_operation_show(struct device *dev, struct device_attribute *attr, char *buf) |
148 | { | 148 | { |
149 | struct tape_device *tdev; | 149 | struct tape_device *tdev; |
150 | ssize_t rc; | 150 | ssize_t rc; |
@@ -171,7 +171,7 @@ static | |||
171 | DEVICE_ATTR(operation, 0444, tape_operation_show, NULL); | 171 | DEVICE_ATTR(operation, 0444, tape_operation_show, NULL); |
172 | 172 | ||
173 | static ssize_t | 173 | static ssize_t |
174 | tape_blocksize_show(struct device *dev, char *buf) | 174 | tape_blocksize_show(struct device *dev, struct device_attribute *attr, char *buf) |
175 | { | 175 | { |
176 | struct tape_device *tdev; | 176 | struct tape_device *tdev; |
177 | 177 | ||
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index 724ad87f0613..f7717327d15e 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c | |||
@@ -548,7 +548,7 @@ vmlogrdr_read (struct file *filp, char *data, size_t count, loff_t * ppos) | |||
548 | } | 548 | } |
549 | 549 | ||
550 | static ssize_t | 550 | static ssize_t |
551 | vmlogrdr_autopurge_store(struct device * dev, const char * buf, size_t count) { | 551 | vmlogrdr_autopurge_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t count) { |
552 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 552 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
553 | ssize_t ret = count; | 553 | ssize_t ret = count; |
554 | 554 | ||
@@ -567,7 +567,7 @@ vmlogrdr_autopurge_store(struct device * dev, const char * buf, size_t count) { | |||
567 | 567 | ||
568 | 568 | ||
569 | static ssize_t | 569 | static ssize_t |
570 | vmlogrdr_autopurge_show(struct device *dev, char *buf) { | 570 | vmlogrdr_autopurge_show(struct device *dev, struct device_attribute *attr, char *buf) { |
571 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 571 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
572 | return sprintf(buf, "%u\n", priv->autopurge); | 572 | return sprintf(buf, "%u\n", priv->autopurge); |
573 | } | 573 | } |
@@ -578,7 +578,7 @@ static DEVICE_ATTR(autopurge, 0644, vmlogrdr_autopurge_show, | |||
578 | 578 | ||
579 | 579 | ||
580 | static ssize_t | 580 | static ssize_t |
581 | vmlogrdr_purge_store(struct device * dev, const char * buf, size_t count) { | 581 | vmlogrdr_purge_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t count) { |
582 | 582 | ||
583 | char cp_command[80]; | 583 | char cp_command[80]; |
584 | char cp_response[80]; | 584 | char cp_response[80]; |
@@ -619,7 +619,7 @@ static DEVICE_ATTR(purge, 0200, NULL, vmlogrdr_purge_store); | |||
619 | 619 | ||
620 | 620 | ||
621 | static ssize_t | 621 | static ssize_t |
622 | vmlogrdr_autorecording_store(struct device *dev, const char *buf, | 622 | vmlogrdr_autorecording_store(struct device *dev, struct device_attribute *attr, const char *buf, |
623 | size_t count) { | 623 | size_t count) { |
624 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 624 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
625 | ssize_t ret = count; | 625 | ssize_t ret = count; |
@@ -639,7 +639,7 @@ vmlogrdr_autorecording_store(struct device *dev, const char *buf, | |||
639 | 639 | ||
640 | 640 | ||
641 | static ssize_t | 641 | static ssize_t |
642 | vmlogrdr_autorecording_show(struct device *dev, char *buf) { | 642 | vmlogrdr_autorecording_show(struct device *dev, struct device_attribute *attr, char *buf) { |
643 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 643 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
644 | return sprintf(buf, "%u\n", priv->autorecording); | 644 | return sprintf(buf, "%u\n", priv->autorecording); |
645 | } | 645 | } |
@@ -650,7 +650,7 @@ static DEVICE_ATTR(autorecording, 0644, vmlogrdr_autorecording_show, | |||
650 | 650 | ||
651 | 651 | ||
652 | static ssize_t | 652 | static ssize_t |
653 | vmlogrdr_recording_store(struct device * dev, const char * buf, size_t count) { | 653 | vmlogrdr_recording_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t count) { |
654 | 654 | ||
655 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 655 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
656 | ssize_t ret; | 656 | ssize_t ret; |