diff options
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/claw.c | 40 | ||||
-rw-r--r-- | drivers/s390/net/ctcmain.c | 18 | ||||
-rw-r--r-- | drivers/s390/net/lcs.c | 10 | ||||
-rw-r--r-- | drivers/s390/net/netiucv.c | 44 |
4 files changed, 56 insertions, 56 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index 06804d39a9c6..a99927d54ebb 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c | |||
@@ -241,20 +241,20 @@ static struct sk_buff *claw_pack_skb(struct claw_privbk *privptr); | |||
241 | static void dumpit (char *buf, int len); | 241 | static void dumpit (char *buf, int len); |
242 | #endif | 242 | #endif |
243 | /* sysfs Functions */ | 243 | /* sysfs Functions */ |
244 | static ssize_t claw_hname_show(struct device *dev, char *buf); | 244 | static ssize_t claw_hname_show(struct device *dev, struct device_attribute *attr, char *buf); |
245 | static ssize_t claw_hname_write(struct device *dev, | 245 | static ssize_t claw_hname_write(struct device *dev, struct device_attribute *attr, |
246 | const char *buf, size_t count); | 246 | const char *buf, size_t count); |
247 | static ssize_t claw_adname_show(struct device *dev, char *buf); | 247 | static ssize_t claw_adname_show(struct device *dev, struct device_attribute *attr, char *buf); |
248 | static ssize_t claw_adname_write(struct device *dev, | 248 | static ssize_t claw_adname_write(struct device *dev, struct device_attribute *attr, |
249 | const char *buf, size_t count); | 249 | const char *buf, size_t count); |
250 | static ssize_t claw_apname_show(struct device *dev, char *buf); | 250 | static ssize_t claw_apname_show(struct device *dev, struct device_attribute *attr, char *buf); |
251 | static ssize_t claw_apname_write(struct device *dev, | 251 | static ssize_t claw_apname_write(struct device *dev, struct device_attribute *attr, |
252 | const char *buf, size_t count); | 252 | const char *buf, size_t count); |
253 | static ssize_t claw_wbuff_show(struct device *dev, char *buf); | 253 | static ssize_t claw_wbuff_show(struct device *dev, struct device_attribute *attr, char *buf); |
254 | static ssize_t claw_wbuff_write(struct device *dev, | 254 | static ssize_t claw_wbuff_write(struct device *dev, struct device_attribute *attr, |
255 | const char *buf, size_t count); | 255 | const char *buf, size_t count); |
256 | static ssize_t claw_rbuff_show(struct device *dev, char *buf); | 256 | static ssize_t claw_rbuff_show(struct device *dev, struct device_attribute *attr, char *buf); |
257 | static ssize_t claw_rbuff_write(struct device *dev, | 257 | static ssize_t claw_rbuff_write(struct device *dev, struct device_attribute *attr, |
258 | const char *buf, size_t count); | 258 | const char *buf, size_t count); |
259 | static int claw_add_files(struct device *dev); | 259 | static int claw_add_files(struct device *dev); |
260 | static void claw_remove_files(struct device *dev); | 260 | static void claw_remove_files(struct device *dev); |
@@ -4149,7 +4149,7 @@ claw_remove_device(struct ccwgroup_device *cgdev) | |||
4149 | * sysfs attributes | 4149 | * sysfs attributes |
4150 | */ | 4150 | */ |
4151 | static ssize_t | 4151 | static ssize_t |
4152 | claw_hname_show(struct device *dev, char *buf) | 4152 | claw_hname_show(struct device *dev, struct device_attribute *attr, char *buf) |
4153 | { | 4153 | { |
4154 | struct claw_privbk *priv; | 4154 | struct claw_privbk *priv; |
4155 | struct claw_env * p_env; | 4155 | struct claw_env * p_env; |
@@ -4162,7 +4162,7 @@ claw_hname_show(struct device *dev, char *buf) | |||
4162 | } | 4162 | } |
4163 | 4163 | ||
4164 | static ssize_t | 4164 | static ssize_t |
4165 | claw_hname_write(struct device *dev, const char *buf, size_t count) | 4165 | claw_hname_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
4166 | { | 4166 | { |
4167 | struct claw_privbk *priv; | 4167 | struct claw_privbk *priv; |
4168 | struct claw_env * p_env; | 4168 | struct claw_env * p_env; |
@@ -4186,7 +4186,7 @@ claw_hname_write(struct device *dev, const char *buf, size_t count) | |||
4186 | static DEVICE_ATTR(host_name, 0644, claw_hname_show, claw_hname_write); | 4186 | static DEVICE_ATTR(host_name, 0644, claw_hname_show, claw_hname_write); |
4187 | 4187 | ||
4188 | static ssize_t | 4188 | static ssize_t |
4189 | claw_adname_show(struct device *dev, char *buf) | 4189 | claw_adname_show(struct device *dev, struct device_attribute *attr, char *buf) |
4190 | { | 4190 | { |
4191 | struct claw_privbk *priv; | 4191 | struct claw_privbk *priv; |
4192 | struct claw_env * p_env; | 4192 | struct claw_env * p_env; |
@@ -4199,7 +4199,7 @@ claw_adname_show(struct device *dev, char *buf) | |||
4199 | } | 4199 | } |
4200 | 4200 | ||
4201 | static ssize_t | 4201 | static ssize_t |
4202 | claw_adname_write(struct device *dev, const char *buf, size_t count) | 4202 | claw_adname_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
4203 | { | 4203 | { |
4204 | struct claw_privbk *priv; | 4204 | struct claw_privbk *priv; |
4205 | struct claw_env * p_env; | 4205 | struct claw_env * p_env; |
@@ -4223,7 +4223,7 @@ claw_adname_write(struct device *dev, const char *buf, size_t count) | |||
4223 | static DEVICE_ATTR(adapter_name, 0644, claw_adname_show, claw_adname_write); | 4223 | static DEVICE_ATTR(adapter_name, 0644, claw_adname_show, claw_adname_write); |
4224 | 4224 | ||
4225 | static ssize_t | 4225 | static ssize_t |
4226 | claw_apname_show(struct device *dev, char *buf) | 4226 | claw_apname_show(struct device *dev, struct device_attribute *attr, char *buf) |
4227 | { | 4227 | { |
4228 | struct claw_privbk *priv; | 4228 | struct claw_privbk *priv; |
4229 | struct claw_env * p_env; | 4229 | struct claw_env * p_env; |
@@ -4237,7 +4237,7 @@ claw_apname_show(struct device *dev, char *buf) | |||
4237 | } | 4237 | } |
4238 | 4238 | ||
4239 | static ssize_t | 4239 | static ssize_t |
4240 | claw_apname_write(struct device *dev, const char *buf, size_t count) | 4240 | claw_apname_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
4241 | { | 4241 | { |
4242 | struct claw_privbk *priv; | 4242 | struct claw_privbk *priv; |
4243 | struct claw_env * p_env; | 4243 | struct claw_env * p_env; |
@@ -4271,7 +4271,7 @@ claw_apname_write(struct device *dev, const char *buf, size_t count) | |||
4271 | static DEVICE_ATTR(api_type, 0644, claw_apname_show, claw_apname_write); | 4271 | static DEVICE_ATTR(api_type, 0644, claw_apname_show, claw_apname_write); |
4272 | 4272 | ||
4273 | static ssize_t | 4273 | static ssize_t |
4274 | claw_wbuff_show(struct device *dev, char *buf) | 4274 | claw_wbuff_show(struct device *dev, struct device_attribute *attr, char *buf) |
4275 | { | 4275 | { |
4276 | struct claw_privbk *priv; | 4276 | struct claw_privbk *priv; |
4277 | struct claw_env * p_env; | 4277 | struct claw_env * p_env; |
@@ -4284,7 +4284,7 @@ claw_wbuff_show(struct device *dev, char *buf) | |||
4284 | } | 4284 | } |
4285 | 4285 | ||
4286 | static ssize_t | 4286 | static ssize_t |
4287 | claw_wbuff_write(struct device *dev, const char *buf, size_t count) | 4287 | claw_wbuff_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
4288 | { | 4288 | { |
4289 | struct claw_privbk *priv; | 4289 | struct claw_privbk *priv; |
4290 | struct claw_env * p_env; | 4290 | struct claw_env * p_env; |
@@ -4312,7 +4312,7 @@ claw_wbuff_write(struct device *dev, const char *buf, size_t count) | |||
4312 | static DEVICE_ATTR(write_buffer, 0644, claw_wbuff_show, claw_wbuff_write); | 4312 | static DEVICE_ATTR(write_buffer, 0644, claw_wbuff_show, claw_wbuff_write); |
4313 | 4313 | ||
4314 | static ssize_t | 4314 | static ssize_t |
4315 | claw_rbuff_show(struct device *dev, char *buf) | 4315 | claw_rbuff_show(struct device *dev, struct device_attribute *attr, char *buf) |
4316 | { | 4316 | { |
4317 | struct claw_privbk *priv; | 4317 | struct claw_privbk *priv; |
4318 | struct claw_env * p_env; | 4318 | struct claw_env * p_env; |
@@ -4325,7 +4325,7 @@ claw_rbuff_show(struct device *dev, char *buf) | |||
4325 | } | 4325 | } |
4326 | 4326 | ||
4327 | static ssize_t | 4327 | static ssize_t |
4328 | claw_rbuff_write(struct device *dev, const char *buf, size_t count) | 4328 | claw_rbuff_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
4329 | { | 4329 | { |
4330 | struct claw_privbk *priv; | 4330 | struct claw_privbk *priv; |
4331 | struct claw_env *p_env; | 4331 | struct claw_env *p_env; |
diff --git a/drivers/s390/net/ctcmain.c b/drivers/s390/net/ctcmain.c index ff3e95e07e89..96ca863eaff2 100644 --- a/drivers/s390/net/ctcmain.c +++ b/drivers/s390/net/ctcmain.c | |||
@@ -2469,7 +2469,7 @@ ctc_stats(struct net_device * dev) | |||
2469 | */ | 2469 | */ |
2470 | 2470 | ||
2471 | static ssize_t | 2471 | static ssize_t |
2472 | buffer_show(struct device *dev, char *buf) | 2472 | buffer_show(struct device *dev, struct device_attribute *attr, char *buf) |
2473 | { | 2473 | { |
2474 | struct ctc_priv *priv; | 2474 | struct ctc_priv *priv; |
2475 | 2475 | ||
@@ -2481,7 +2481,7 @@ buffer_show(struct device *dev, char *buf) | |||
2481 | } | 2481 | } |
2482 | 2482 | ||
2483 | static ssize_t | 2483 | static ssize_t |
2484 | buffer_write(struct device *dev, const char *buf, size_t count) | 2484 | buffer_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2485 | { | 2485 | { |
2486 | struct ctc_priv *priv; | 2486 | struct ctc_priv *priv; |
2487 | struct net_device *ndev; | 2487 | struct net_device *ndev; |
@@ -2530,13 +2530,13 @@ einval: | |||
2530 | } | 2530 | } |
2531 | 2531 | ||
2532 | static ssize_t | 2532 | static ssize_t |
2533 | loglevel_show(struct device *dev, char *buf) | 2533 | loglevel_show(struct device *dev, struct device_attribute *attr, char *buf) |
2534 | { | 2534 | { |
2535 | return sprintf(buf, "%d\n", loglevel); | 2535 | return sprintf(buf, "%d\n", loglevel); |
2536 | } | 2536 | } |
2537 | 2537 | ||
2538 | static ssize_t | 2538 | static ssize_t |
2539 | loglevel_write(struct device *dev, const char *buf, size_t count) | 2539 | loglevel_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2540 | { | 2540 | { |
2541 | int ll1; | 2541 | int ll1; |
2542 | 2542 | ||
@@ -2589,7 +2589,7 @@ ctc_print_statistics(struct ctc_priv *priv) | |||
2589 | } | 2589 | } |
2590 | 2590 | ||
2591 | static ssize_t | 2591 | static ssize_t |
2592 | stats_show(struct device *dev, char *buf) | 2592 | stats_show(struct device *dev, struct device_attribute *attr, char *buf) |
2593 | { | 2593 | { |
2594 | struct ctc_priv *priv = dev->driver_data; | 2594 | struct ctc_priv *priv = dev->driver_data; |
2595 | if (!priv) | 2595 | if (!priv) |
@@ -2599,7 +2599,7 @@ stats_show(struct device *dev, char *buf) | |||
2599 | } | 2599 | } |
2600 | 2600 | ||
2601 | static ssize_t | 2601 | static ssize_t |
2602 | stats_write(struct device *dev, const char *buf, size_t count) | 2602 | stats_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2603 | { | 2603 | { |
2604 | struct ctc_priv *priv = dev->driver_data; | 2604 | struct ctc_priv *priv = dev->driver_data; |
2605 | if (!priv) | 2605 | if (!priv) |
@@ -2654,7 +2654,7 @@ ctc_free_netdevice(struct net_device * dev, int free_dev) | |||
2654 | } | 2654 | } |
2655 | 2655 | ||
2656 | static ssize_t | 2656 | static ssize_t |
2657 | ctc_proto_show(struct device *dev, char *buf) | 2657 | ctc_proto_show(struct device *dev, struct device_attribute *attr, char *buf) |
2658 | { | 2658 | { |
2659 | struct ctc_priv *priv; | 2659 | struct ctc_priv *priv; |
2660 | 2660 | ||
@@ -2666,7 +2666,7 @@ ctc_proto_show(struct device *dev, char *buf) | |||
2666 | } | 2666 | } |
2667 | 2667 | ||
2668 | static ssize_t | 2668 | static ssize_t |
2669 | ctc_proto_store(struct device *dev, const char *buf, size_t count) | 2669 | ctc_proto_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2670 | { | 2670 | { |
2671 | struct ctc_priv *priv; | 2671 | struct ctc_priv *priv; |
2672 | int value; | 2672 | int value; |
@@ -2687,7 +2687,7 @@ ctc_proto_store(struct device *dev, const char *buf, size_t count) | |||
2687 | 2687 | ||
2688 | 2688 | ||
2689 | static ssize_t | 2689 | static ssize_t |
2690 | ctc_type_show(struct device *dev, char *buf) | 2690 | ctc_type_show(struct device *dev, struct device_attribute *attr, char *buf) |
2691 | { | 2691 | { |
2692 | struct ccwgroup_device *cgdev; | 2692 | struct ccwgroup_device *cgdev; |
2693 | 2693 | ||
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index cccfed248e70..ab086242d305 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -1984,7 +1984,7 @@ lcs_open_device(struct net_device *dev) | |||
1984 | * show function for portno called by cat or similar things | 1984 | * show function for portno called by cat or similar things |
1985 | */ | 1985 | */ |
1986 | static ssize_t | 1986 | static ssize_t |
1987 | lcs_portno_show (struct device *dev, char *buf) | 1987 | lcs_portno_show (struct device *dev, struct device_attribute *attr, char *buf) |
1988 | { | 1988 | { |
1989 | struct lcs_card *card; | 1989 | struct lcs_card *card; |
1990 | 1990 | ||
@@ -2000,7 +2000,7 @@ lcs_portno_show (struct device *dev, char *buf) | |||
2000 | * store the value which is piped to file portno | 2000 | * store the value which is piped to file portno |
2001 | */ | 2001 | */ |
2002 | static ssize_t | 2002 | static ssize_t |
2003 | lcs_portno_store (struct device *dev, const char *buf, size_t count) | 2003 | lcs_portno_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2004 | { | 2004 | { |
2005 | struct lcs_card *card; | 2005 | struct lcs_card *card; |
2006 | int value; | 2006 | int value; |
@@ -2021,7 +2021,7 @@ lcs_portno_store (struct device *dev, const char *buf, size_t count) | |||
2021 | static DEVICE_ATTR(portno, 0644, lcs_portno_show, lcs_portno_store); | 2021 | static DEVICE_ATTR(portno, 0644, lcs_portno_show, lcs_portno_store); |
2022 | 2022 | ||
2023 | static ssize_t | 2023 | static ssize_t |
2024 | lcs_type_show(struct device *dev, char *buf) | 2024 | lcs_type_show(struct device *dev, struct device_attribute *attr, char *buf) |
2025 | { | 2025 | { |
2026 | struct ccwgroup_device *cgdev; | 2026 | struct ccwgroup_device *cgdev; |
2027 | 2027 | ||
@@ -2035,7 +2035,7 @@ lcs_type_show(struct device *dev, char *buf) | |||
2035 | static DEVICE_ATTR(type, 0444, lcs_type_show, NULL); | 2035 | static DEVICE_ATTR(type, 0444, lcs_type_show, NULL); |
2036 | 2036 | ||
2037 | static ssize_t | 2037 | static ssize_t |
2038 | lcs_timeout_show(struct device *dev, char *buf) | 2038 | lcs_timeout_show(struct device *dev, struct device_attribute *attr, char *buf) |
2039 | { | 2039 | { |
2040 | struct lcs_card *card; | 2040 | struct lcs_card *card; |
2041 | 2041 | ||
@@ -2045,7 +2045,7 @@ lcs_timeout_show(struct device *dev, char *buf) | |||
2045 | } | 2045 | } |
2046 | 2046 | ||
2047 | static ssize_t | 2047 | static ssize_t |
2048 | lcs_timeout_store (struct device *dev, const char *buf, size_t count) | 2048 | lcs_timeout_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2049 | { | 2049 | { |
2050 | struct lcs_card *card; | 2050 | struct lcs_card *card; |
2051 | int value; | 2051 | int value; |
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index 16e8e69afb10..3fd4fb754b2d 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c | |||
@@ -1356,7 +1356,7 @@ netiucv_change_mtu (struct net_device * dev, int new_mtu) | |||
1356 | *****************************************************************************/ | 1356 | *****************************************************************************/ |
1357 | 1357 | ||
1358 | static ssize_t | 1358 | static ssize_t |
1359 | user_show (struct device *dev, char *buf) | 1359 | user_show (struct device *dev, struct device_attribute *attr, char *buf) |
1360 | { | 1360 | { |
1361 | struct netiucv_priv *priv = dev->driver_data; | 1361 | struct netiucv_priv *priv = dev->driver_data; |
1362 | 1362 | ||
@@ -1365,7 +1365,7 @@ user_show (struct device *dev, char *buf) | |||
1365 | } | 1365 | } |
1366 | 1366 | ||
1367 | static ssize_t | 1367 | static ssize_t |
1368 | user_write (struct device *dev, const char *buf, size_t count) | 1368 | user_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1369 | { | 1369 | { |
1370 | struct netiucv_priv *priv = dev->driver_data; | 1370 | struct netiucv_priv *priv = dev->driver_data; |
1371 | struct net_device *ndev = priv->conn->netdev; | 1371 | struct net_device *ndev = priv->conn->netdev; |
@@ -1422,7 +1422,7 @@ user_write (struct device *dev, const char *buf, size_t count) | |||
1422 | static DEVICE_ATTR(user, 0644, user_show, user_write); | 1422 | static DEVICE_ATTR(user, 0644, user_show, user_write); |
1423 | 1423 | ||
1424 | static ssize_t | 1424 | static ssize_t |
1425 | buffer_show (struct device *dev, char *buf) | 1425 | buffer_show (struct device *dev, struct device_attribute *attr, char *buf) |
1426 | { | 1426 | { |
1427 | struct netiucv_priv *priv = dev->driver_data; | 1427 | struct netiucv_priv *priv = dev->driver_data; |
1428 | 1428 | ||
@@ -1431,7 +1431,7 @@ buffer_show (struct device *dev, char *buf) | |||
1431 | } | 1431 | } |
1432 | 1432 | ||
1433 | static ssize_t | 1433 | static ssize_t |
1434 | buffer_write (struct device *dev, const char *buf, size_t count) | 1434 | buffer_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1435 | { | 1435 | { |
1436 | struct netiucv_priv *priv = dev->driver_data; | 1436 | struct netiucv_priv *priv = dev->driver_data; |
1437 | struct net_device *ndev = priv->conn->netdev; | 1437 | struct net_device *ndev = priv->conn->netdev; |
@@ -1486,7 +1486,7 @@ buffer_write (struct device *dev, const char *buf, size_t count) | |||
1486 | static DEVICE_ATTR(buffer, 0644, buffer_show, buffer_write); | 1486 | static DEVICE_ATTR(buffer, 0644, buffer_show, buffer_write); |
1487 | 1487 | ||
1488 | static ssize_t | 1488 | static ssize_t |
1489 | dev_fsm_show (struct device *dev, char *buf) | 1489 | dev_fsm_show (struct device *dev, struct device_attribute *attr, char *buf) |
1490 | { | 1490 | { |
1491 | struct netiucv_priv *priv = dev->driver_data; | 1491 | struct netiucv_priv *priv = dev->driver_data; |
1492 | 1492 | ||
@@ -1497,7 +1497,7 @@ dev_fsm_show (struct device *dev, char *buf) | |||
1497 | static DEVICE_ATTR(device_fsm_state, 0444, dev_fsm_show, NULL); | 1497 | static DEVICE_ATTR(device_fsm_state, 0444, dev_fsm_show, NULL); |
1498 | 1498 | ||
1499 | static ssize_t | 1499 | static ssize_t |
1500 | conn_fsm_show (struct device *dev, char *buf) | 1500 | conn_fsm_show (struct device *dev, struct device_attribute *attr, char *buf) |
1501 | { | 1501 | { |
1502 | struct netiucv_priv *priv = dev->driver_data; | 1502 | struct netiucv_priv *priv = dev->driver_data; |
1503 | 1503 | ||
@@ -1508,7 +1508,7 @@ conn_fsm_show (struct device *dev, char *buf) | |||
1508 | static DEVICE_ATTR(connection_fsm_state, 0444, conn_fsm_show, NULL); | 1508 | static DEVICE_ATTR(connection_fsm_state, 0444, conn_fsm_show, NULL); |
1509 | 1509 | ||
1510 | static ssize_t | 1510 | static ssize_t |
1511 | maxmulti_show (struct device *dev, char *buf) | 1511 | maxmulti_show (struct device *dev, struct device_attribute *attr, char *buf) |
1512 | { | 1512 | { |
1513 | struct netiucv_priv *priv = dev->driver_data; | 1513 | struct netiucv_priv *priv = dev->driver_data; |
1514 | 1514 | ||
@@ -1517,7 +1517,7 @@ maxmulti_show (struct device *dev, char *buf) | |||
1517 | } | 1517 | } |
1518 | 1518 | ||
1519 | static ssize_t | 1519 | static ssize_t |
1520 | maxmulti_write (struct device *dev, const char *buf, size_t count) | 1520 | maxmulti_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1521 | { | 1521 | { |
1522 | struct netiucv_priv *priv = dev->driver_data; | 1522 | struct netiucv_priv *priv = dev->driver_data; |
1523 | 1523 | ||
@@ -1529,7 +1529,7 @@ maxmulti_write (struct device *dev, const char *buf, size_t count) | |||
1529 | static DEVICE_ATTR(max_tx_buffer_used, 0644, maxmulti_show, maxmulti_write); | 1529 | static DEVICE_ATTR(max_tx_buffer_used, 0644, maxmulti_show, maxmulti_write); |
1530 | 1530 | ||
1531 | static ssize_t | 1531 | static ssize_t |
1532 | maxcq_show (struct device *dev, char *buf) | 1532 | maxcq_show (struct device *dev, struct device_attribute *attr, char *buf) |
1533 | { | 1533 | { |
1534 | struct netiucv_priv *priv = dev->driver_data; | 1534 | struct netiucv_priv *priv = dev->driver_data; |
1535 | 1535 | ||
@@ -1538,7 +1538,7 @@ maxcq_show (struct device *dev, char *buf) | |||
1538 | } | 1538 | } |
1539 | 1539 | ||
1540 | static ssize_t | 1540 | static ssize_t |
1541 | maxcq_write (struct device *dev, const char *buf, size_t count) | 1541 | maxcq_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1542 | { | 1542 | { |
1543 | struct netiucv_priv *priv = dev->driver_data; | 1543 | struct netiucv_priv *priv = dev->driver_data; |
1544 | 1544 | ||
@@ -1550,7 +1550,7 @@ maxcq_write (struct device *dev, const char *buf, size_t count) | |||
1550 | static DEVICE_ATTR(max_chained_skbs, 0644, maxcq_show, maxcq_write); | 1550 | static DEVICE_ATTR(max_chained_skbs, 0644, maxcq_show, maxcq_write); |
1551 | 1551 | ||
1552 | static ssize_t | 1552 | static ssize_t |
1553 | sdoio_show (struct device *dev, char *buf) | 1553 | sdoio_show (struct device *dev, struct device_attribute *attr, char *buf) |
1554 | { | 1554 | { |
1555 | struct netiucv_priv *priv = dev->driver_data; | 1555 | struct netiucv_priv *priv = dev->driver_data; |
1556 | 1556 | ||
@@ -1559,7 +1559,7 @@ sdoio_show (struct device *dev, char *buf) | |||
1559 | } | 1559 | } |
1560 | 1560 | ||
1561 | static ssize_t | 1561 | static ssize_t |
1562 | sdoio_write (struct device *dev, const char *buf, size_t count) | 1562 | sdoio_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1563 | { | 1563 | { |
1564 | struct netiucv_priv *priv = dev->driver_data; | 1564 | struct netiucv_priv *priv = dev->driver_data; |
1565 | 1565 | ||
@@ -1571,7 +1571,7 @@ sdoio_write (struct device *dev, const char *buf, size_t count) | |||
1571 | static DEVICE_ATTR(tx_single_write_ops, 0644, sdoio_show, sdoio_write); | 1571 | static DEVICE_ATTR(tx_single_write_ops, 0644, sdoio_show, sdoio_write); |
1572 | 1572 | ||
1573 | static ssize_t | 1573 | static ssize_t |
1574 | mdoio_show (struct device *dev, char *buf) | 1574 | mdoio_show (struct device *dev, struct device_attribute *attr, char *buf) |
1575 | { | 1575 | { |
1576 | struct netiucv_priv *priv = dev->driver_data; | 1576 | struct netiucv_priv *priv = dev->driver_data; |
1577 | 1577 | ||
@@ -1580,7 +1580,7 @@ mdoio_show (struct device *dev, char *buf) | |||
1580 | } | 1580 | } |
1581 | 1581 | ||
1582 | static ssize_t | 1582 | static ssize_t |
1583 | mdoio_write (struct device *dev, const char *buf, size_t count) | 1583 | mdoio_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1584 | { | 1584 | { |
1585 | struct netiucv_priv *priv = dev->driver_data; | 1585 | struct netiucv_priv *priv = dev->driver_data; |
1586 | 1586 | ||
@@ -1592,7 +1592,7 @@ mdoio_write (struct device *dev, const char *buf, size_t count) | |||
1592 | static DEVICE_ATTR(tx_multi_write_ops, 0644, mdoio_show, mdoio_write); | 1592 | static DEVICE_ATTR(tx_multi_write_ops, 0644, mdoio_show, mdoio_write); |
1593 | 1593 | ||
1594 | static ssize_t | 1594 | static ssize_t |
1595 | txlen_show (struct device *dev, char *buf) | 1595 | txlen_show (struct device *dev, struct device_attribute *attr, char *buf) |
1596 | { | 1596 | { |
1597 | struct netiucv_priv *priv = dev->driver_data; | 1597 | struct netiucv_priv *priv = dev->driver_data; |
1598 | 1598 | ||
@@ -1601,7 +1601,7 @@ txlen_show (struct device *dev, char *buf) | |||
1601 | } | 1601 | } |
1602 | 1602 | ||
1603 | static ssize_t | 1603 | static ssize_t |
1604 | txlen_write (struct device *dev, const char *buf, size_t count) | 1604 | txlen_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1605 | { | 1605 | { |
1606 | struct netiucv_priv *priv = dev->driver_data; | 1606 | struct netiucv_priv *priv = dev->driver_data; |
1607 | 1607 | ||
@@ -1613,7 +1613,7 @@ txlen_write (struct device *dev, const char *buf, size_t count) | |||
1613 | static DEVICE_ATTR(netto_bytes, 0644, txlen_show, txlen_write); | 1613 | static DEVICE_ATTR(netto_bytes, 0644, txlen_show, txlen_write); |
1614 | 1614 | ||
1615 | static ssize_t | 1615 | static ssize_t |
1616 | txtime_show (struct device *dev, char *buf) | 1616 | txtime_show (struct device *dev, struct device_attribute *attr, char *buf) |
1617 | { | 1617 | { |
1618 | struct netiucv_priv *priv = dev->driver_data; | 1618 | struct netiucv_priv *priv = dev->driver_data; |
1619 | 1619 | ||
@@ -1622,7 +1622,7 @@ txtime_show (struct device *dev, char *buf) | |||
1622 | } | 1622 | } |
1623 | 1623 | ||
1624 | static ssize_t | 1624 | static ssize_t |
1625 | txtime_write (struct device *dev, const char *buf, size_t count) | 1625 | txtime_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1626 | { | 1626 | { |
1627 | struct netiucv_priv *priv = dev->driver_data; | 1627 | struct netiucv_priv *priv = dev->driver_data; |
1628 | 1628 | ||
@@ -1634,7 +1634,7 @@ txtime_write (struct device *dev, const char *buf, size_t count) | |||
1634 | static DEVICE_ATTR(max_tx_io_time, 0644, txtime_show, txtime_write); | 1634 | static DEVICE_ATTR(max_tx_io_time, 0644, txtime_show, txtime_write); |
1635 | 1635 | ||
1636 | static ssize_t | 1636 | static ssize_t |
1637 | txpend_show (struct device *dev, char *buf) | 1637 | txpend_show (struct device *dev, struct device_attribute *attr, char *buf) |
1638 | { | 1638 | { |
1639 | struct netiucv_priv *priv = dev->driver_data; | 1639 | struct netiucv_priv *priv = dev->driver_data; |
1640 | 1640 | ||
@@ -1643,7 +1643,7 @@ txpend_show (struct device *dev, char *buf) | |||
1643 | } | 1643 | } |
1644 | 1644 | ||
1645 | static ssize_t | 1645 | static ssize_t |
1646 | txpend_write (struct device *dev, const char *buf, size_t count) | 1646 | txpend_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1647 | { | 1647 | { |
1648 | struct netiucv_priv *priv = dev->driver_data; | 1648 | struct netiucv_priv *priv = dev->driver_data; |
1649 | 1649 | ||
@@ -1655,7 +1655,7 @@ txpend_write (struct device *dev, const char *buf, size_t count) | |||
1655 | static DEVICE_ATTR(tx_pending, 0644, txpend_show, txpend_write); | 1655 | static DEVICE_ATTR(tx_pending, 0644, txpend_show, txpend_write); |
1656 | 1656 | ||
1657 | static ssize_t | 1657 | static ssize_t |
1658 | txmpnd_show (struct device *dev, char *buf) | 1658 | txmpnd_show (struct device *dev, struct device_attribute *attr, char *buf) |
1659 | { | 1659 | { |
1660 | struct netiucv_priv *priv = dev->driver_data; | 1660 | struct netiucv_priv *priv = dev->driver_data; |
1661 | 1661 | ||
@@ -1664,7 +1664,7 @@ txmpnd_show (struct device *dev, char *buf) | |||
1664 | } | 1664 | } |
1665 | 1665 | ||
1666 | static ssize_t | 1666 | static ssize_t |
1667 | txmpnd_write (struct device *dev, const char *buf, size_t count) | 1667 | txmpnd_write (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1668 | { | 1668 | { |
1669 | struct netiucv_priv *priv = dev->driver_data; | 1669 | struct netiucv_priv *priv = dev->driver_data; |
1670 | 1670 | ||