diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-23 09:43:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:54 -0500 |
commit | 69f9032d9dfeb763b467fdbe8cf5938f5457083a (patch) | |
tree | 613598938e17e1a7514e0da3817f3cfebbe346a9 /drivers/net/wireless/libertas/debugfs.c | |
parent | 96287ac4f7b387acbe17e24b5e1bcbf3bc0e75cd (diff) |
libertas: remove arbitrary typedefs
New typedefs are usually frowned upon. This patch changes
libertas_adapter -> struct libertas_adapter
libertas_priv -> struct libertas_priv
While passing, make everything checkpatch.pl-clean that gets touches.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 1b382cfaf37a..2e1842474f8e 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -18,7 +18,7 @@ static char *szStates[] = { | |||
18 | }; | 18 | }; |
19 | 19 | ||
20 | #ifdef PROC_DEBUG | 20 | #ifdef PROC_DEBUG |
21 | static void lbs_debug_init(lbs_private * priv, struct net_device *dev); | 21 | static void lbs_debug_init(struct lbs_private *priv, struct net_device *dev); |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | static int open_file_generic(struct inode *inode, struct file *file) | 24 | static int open_file_generic(struct inode *inode, struct file *file) |
@@ -38,7 +38,7 @@ static const size_t len = PAGE_SIZE; | |||
38 | static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, | 38 | static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, |
39 | size_t count, loff_t *ppos) | 39 | size_t count, loff_t *ppos) |
40 | { | 40 | { |
41 | lbs_private *priv = file->private_data; | 41 | struct lbs_private *priv = file->private_data; |
42 | size_t pos = 0; | 42 | size_t pos = 0; |
43 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 43 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
44 | char *buf = (char *)addr; | 44 | char *buf = (char *)addr; |
@@ -59,7 +59,7 @@ static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, | |||
59 | static ssize_t lbs_getscantable(struct file *file, char __user *userbuf, | 59 | static ssize_t lbs_getscantable(struct file *file, char __user *userbuf, |
60 | size_t count, loff_t *ppos) | 60 | size_t count, loff_t *ppos) |
61 | { | 61 | { |
62 | lbs_private *priv = file->private_data; | 62 | struct lbs_private *priv = file->private_data; |
63 | size_t pos = 0; | 63 | size_t pos = 0; |
64 | int numscansdone = 0, res; | 64 | int numscansdone = 0, res; |
65 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 65 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
@@ -102,7 +102,7 @@ static ssize_t lbs_sleepparams_write(struct file *file, | |||
102 | const char __user *user_buf, size_t count, | 102 | const char __user *user_buf, size_t count, |
103 | loff_t *ppos) | 103 | loff_t *ppos) |
104 | { | 104 | { |
105 | lbs_private *priv = file->private_data; | 105 | struct lbs_private *priv = file->private_data; |
106 | ssize_t buf_size, res; | 106 | ssize_t buf_size, res; |
107 | int p1, p2, p3, p4, p5, p6; | 107 | int p1, p2, p3, p4, p5, p6; |
108 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 108 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
@@ -143,8 +143,8 @@ out_unlock: | |||
143 | static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, | 143 | static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, |
144 | size_t count, loff_t *ppos) | 144 | size_t count, loff_t *ppos) |
145 | { | 145 | { |
146 | lbs_private *priv = file->private_data; | 146 | struct lbs_private *priv = file->private_data; |
147 | lbs_adapter *adapter = priv->adapter; | 147 | struct lbs_adapter *adapter = priv->adapter; |
148 | ssize_t res; | 148 | ssize_t res; |
149 | size_t pos = 0; | 149 | size_t pos = 0; |
150 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 150 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
@@ -174,7 +174,7 @@ out_unlock: | |||
174 | static ssize_t lbs_extscan(struct file *file, const char __user *userbuf, | 174 | static ssize_t lbs_extscan(struct file *file, const char __user *userbuf, |
175 | size_t count, loff_t *ppos) | 175 | size_t count, loff_t *ppos) |
176 | { | 176 | { |
177 | lbs_private *priv = file->private_data; | 177 | struct lbs_private *priv = file->private_data; |
178 | ssize_t res, buf_size; | 178 | ssize_t res, buf_size; |
179 | union iwreq_data wrqu; | 179 | union iwreq_data wrqu; |
180 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 180 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
@@ -342,7 +342,7 @@ static ssize_t lbs_setuserscan(struct file *file, | |||
342 | const char __user *userbuf, | 342 | const char __user *userbuf, |
343 | size_t count, loff_t *ppos) | 343 | size_t count, loff_t *ppos) |
344 | { | 344 | { |
345 | lbs_private *priv = file->private_data; | 345 | struct lbs_private *priv = file->private_data; |
346 | ssize_t res, buf_size; | 346 | ssize_t res, buf_size; |
347 | struct lbs_ioctl_user_scan_cfg *scan_cfg; | 347 | struct lbs_ioctl_user_scan_cfg *scan_cfg; |
348 | union iwreq_data wrqu; | 348 | union iwreq_data wrqu; |
@@ -384,7 +384,7 @@ out_unlock: | |||
384 | return count; | 384 | return count; |
385 | } | 385 | } |
386 | 386 | ||
387 | static int lbs_event_initcmd(lbs_private *priv, void **response_buf, | 387 | static int lbs_event_initcmd(struct lbs_private *priv, void **response_buf, |
388 | struct cmd_ctrl_node **cmdnode, | 388 | struct cmd_ctrl_node **cmdnode, |
389 | struct cmd_ds_command **cmd) | 389 | struct cmd_ds_command **cmd) |
390 | { | 390 | { |
@@ -413,8 +413,8 @@ static int lbs_event_initcmd(lbs_private *priv, void **response_buf, | |||
413 | static ssize_t lbs_lowrssi_read(struct file *file, char __user *userbuf, | 413 | static ssize_t lbs_lowrssi_read(struct file *file, char __user *userbuf, |
414 | size_t count, loff_t *ppos) | 414 | size_t count, loff_t *ppos) |
415 | { | 415 | { |
416 | lbs_private *priv = file->private_data; | 416 | struct lbs_private *priv = file->private_data; |
417 | lbs_adapter *adapter = priv->adapter; | 417 | struct lbs_adapter *adapter = priv->adapter; |
418 | struct cmd_ctrl_node *pcmdnode; | 418 | struct cmd_ctrl_node *pcmdnode; |
419 | struct cmd_ds_command *pcmdptr; | 419 | struct cmd_ds_command *pcmdptr; |
420 | struct cmd_ds_802_11_subscribe_event *event; | 420 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -480,9 +480,9 @@ static ssize_t lbs_lowrssi_read(struct file *file, char __user *userbuf, | |||
480 | return res; | 480 | return res; |
481 | } | 481 | } |
482 | 482 | ||
483 | static u16 lbs_get_events_bitmap(lbs_private *priv) | 483 | static u16 lbs_get_events_bitmap(struct lbs_private *priv) |
484 | { | 484 | { |
485 | lbs_adapter *adapter = priv->adapter; | 485 | struct lbs_adapter *adapter = priv->adapter; |
486 | struct cmd_ctrl_node *pcmdnode; | 486 | struct cmd_ctrl_node *pcmdnode; |
487 | struct cmd_ds_command *pcmdptr; | 487 | struct cmd_ds_command *pcmdptr; |
488 | struct cmd_ds_802_11_subscribe_event *event; | 488 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -529,8 +529,8 @@ static ssize_t lbs_lowrssi_write(struct file *file, | |||
529 | const char __user *userbuf, | 529 | const char __user *userbuf, |
530 | size_t count, loff_t *ppos) | 530 | size_t count, loff_t *ppos) |
531 | { | 531 | { |
532 | lbs_private *priv = file->private_data; | 532 | struct lbs_private *priv = file->private_data; |
533 | lbs_adapter *adapter = priv->adapter; | 533 | struct lbs_adapter *adapter = priv->adapter; |
534 | ssize_t res, buf_size; | 534 | ssize_t res, buf_size; |
535 | int value, freq, subscribed, cmd_len; | 535 | int value, freq, subscribed, cmd_len; |
536 | struct cmd_ctrl_node *pcmdnode; | 536 | struct cmd_ctrl_node *pcmdnode; |
@@ -609,8 +609,8 @@ out_unlock: | |||
609 | static ssize_t lbs_lowsnr_read(struct file *file, char __user *userbuf, | 609 | static ssize_t lbs_lowsnr_read(struct file *file, char __user *userbuf, |
610 | size_t count, loff_t *ppos) | 610 | size_t count, loff_t *ppos) |
611 | { | 611 | { |
612 | lbs_private *priv = file->private_data; | 612 | struct lbs_private *priv = file->private_data; |
613 | lbs_adapter *adapter = priv->adapter; | 613 | struct lbs_adapter *adapter = priv->adapter; |
614 | struct cmd_ctrl_node *pcmdnode; | 614 | struct cmd_ctrl_node *pcmdnode; |
615 | struct cmd_ds_command *pcmdptr; | 615 | struct cmd_ds_command *pcmdptr; |
616 | struct cmd_ds_802_11_subscribe_event *event; | 616 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -682,8 +682,8 @@ static ssize_t lbs_lowsnr_write(struct file *file, | |||
682 | const char __user *userbuf, | 682 | const char __user *userbuf, |
683 | size_t count, loff_t *ppos) | 683 | size_t count, loff_t *ppos) |
684 | { | 684 | { |
685 | lbs_private *priv = file->private_data; | 685 | struct lbs_private *priv = file->private_data; |
686 | lbs_adapter *adapter = priv->adapter; | 686 | struct lbs_adapter *adapter = priv->adapter; |
687 | ssize_t res, buf_size; | 687 | ssize_t res, buf_size; |
688 | int value, freq, subscribed, cmd_len; | 688 | int value, freq, subscribed, cmd_len; |
689 | struct cmd_ctrl_node *pcmdnode; | 689 | struct cmd_ctrl_node *pcmdnode; |
@@ -762,8 +762,8 @@ out_unlock: | |||
762 | static ssize_t lbs_failcount_read(struct file *file, char __user *userbuf, | 762 | static ssize_t lbs_failcount_read(struct file *file, char __user *userbuf, |
763 | size_t count, loff_t *ppos) | 763 | size_t count, loff_t *ppos) |
764 | { | 764 | { |
765 | lbs_private *priv = file->private_data; | 765 | struct lbs_private *priv = file->private_data; |
766 | lbs_adapter *adapter = priv->adapter; | 766 | struct lbs_adapter *adapter = priv->adapter; |
767 | struct cmd_ctrl_node *pcmdnode; | 767 | struct cmd_ctrl_node *pcmdnode; |
768 | struct cmd_ds_command *pcmdptr; | 768 | struct cmd_ds_command *pcmdptr; |
769 | struct cmd_ds_802_11_subscribe_event *event; | 769 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -834,8 +834,8 @@ static ssize_t lbs_failcount_write(struct file *file, | |||
834 | const char __user *userbuf, | 834 | const char __user *userbuf, |
835 | size_t count, loff_t *ppos) | 835 | size_t count, loff_t *ppos) |
836 | { | 836 | { |
837 | lbs_private *priv = file->private_data; | 837 | struct lbs_private *priv = file->private_data; |
838 | lbs_adapter *adapter = priv->adapter; | 838 | struct lbs_adapter *adapter = priv->adapter; |
839 | ssize_t res, buf_size; | 839 | ssize_t res, buf_size; |
840 | int value, freq, subscribed, cmd_len; | 840 | int value, freq, subscribed, cmd_len; |
841 | struct cmd_ctrl_node *pcmdnode; | 841 | struct cmd_ctrl_node *pcmdnode; |
@@ -913,8 +913,8 @@ out_unlock: | |||
913 | static ssize_t lbs_bcnmiss_read(struct file *file, char __user *userbuf, | 913 | static ssize_t lbs_bcnmiss_read(struct file *file, char __user *userbuf, |
914 | size_t count, loff_t *ppos) | 914 | size_t count, loff_t *ppos) |
915 | { | 915 | { |
916 | lbs_private *priv = file->private_data; | 916 | struct lbs_private *priv = file->private_data; |
917 | lbs_adapter *adapter = priv->adapter; | 917 | struct lbs_adapter *adapter = priv->adapter; |
918 | struct cmd_ctrl_node *pcmdnode; | 918 | struct cmd_ctrl_node *pcmdnode; |
919 | struct cmd_ds_command *pcmdptr; | 919 | struct cmd_ds_command *pcmdptr; |
920 | struct cmd_ds_802_11_subscribe_event *event; | 920 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -985,8 +985,8 @@ static ssize_t lbs_bcnmiss_write(struct file *file, | |||
985 | const char __user *userbuf, | 985 | const char __user *userbuf, |
986 | size_t count, loff_t *ppos) | 986 | size_t count, loff_t *ppos) |
987 | { | 987 | { |
988 | lbs_private *priv = file->private_data; | 988 | struct lbs_private *priv = file->private_data; |
989 | lbs_adapter *adapter = priv->adapter; | 989 | struct lbs_adapter *adapter = priv->adapter; |
990 | ssize_t res, buf_size; | 990 | ssize_t res, buf_size; |
991 | int value, freq, subscribed, cmd_len; | 991 | int value, freq, subscribed, cmd_len; |
992 | struct cmd_ctrl_node *pcmdnode; | 992 | struct cmd_ctrl_node *pcmdnode; |
@@ -1063,8 +1063,8 @@ out_unlock: | |||
1063 | static ssize_t lbs_highrssi_read(struct file *file, char __user *userbuf, | 1063 | static ssize_t lbs_highrssi_read(struct file *file, char __user *userbuf, |
1064 | size_t count, loff_t *ppos) | 1064 | size_t count, loff_t *ppos) |
1065 | { | 1065 | { |
1066 | lbs_private *priv = file->private_data; | 1066 | struct lbs_private *priv = file->private_data; |
1067 | lbs_adapter *adapter = priv->adapter; | 1067 | struct lbs_adapter *adapter = priv->adapter; |
1068 | struct cmd_ctrl_node *pcmdnode; | 1068 | struct cmd_ctrl_node *pcmdnode; |
1069 | struct cmd_ds_command *pcmdptr; | 1069 | struct cmd_ds_command *pcmdptr; |
1070 | struct cmd_ds_802_11_subscribe_event *event; | 1070 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -1136,8 +1136,8 @@ static ssize_t lbs_highrssi_write(struct file *file, | |||
1136 | const char __user *userbuf, | 1136 | const char __user *userbuf, |
1137 | size_t count, loff_t *ppos) | 1137 | size_t count, loff_t *ppos) |
1138 | { | 1138 | { |
1139 | lbs_private *priv = file->private_data; | 1139 | struct lbs_private *priv = file->private_data; |
1140 | lbs_adapter *adapter = priv->adapter; | 1140 | struct lbs_adapter *adapter = priv->adapter; |
1141 | ssize_t res, buf_size; | 1141 | ssize_t res, buf_size; |
1142 | int value, freq, subscribed, cmd_len; | 1142 | int value, freq, subscribed, cmd_len; |
1143 | struct cmd_ctrl_node *pcmdnode; | 1143 | struct cmd_ctrl_node *pcmdnode; |
@@ -1213,8 +1213,8 @@ out_unlock: | |||
1213 | static ssize_t lbs_highsnr_read(struct file *file, char __user *userbuf, | 1213 | static ssize_t lbs_highsnr_read(struct file *file, char __user *userbuf, |
1214 | size_t count, loff_t *ppos) | 1214 | size_t count, loff_t *ppos) |
1215 | { | 1215 | { |
1216 | lbs_private *priv = file->private_data; | 1216 | struct lbs_private *priv = file->private_data; |
1217 | lbs_adapter *adapter = priv->adapter; | 1217 | struct lbs_adapter *adapter = priv->adapter; |
1218 | struct cmd_ctrl_node *pcmdnode; | 1218 | struct cmd_ctrl_node *pcmdnode; |
1219 | struct cmd_ds_command *pcmdptr; | 1219 | struct cmd_ds_command *pcmdptr; |
1220 | struct cmd_ds_802_11_subscribe_event *event; | 1220 | struct cmd_ds_802_11_subscribe_event *event; |
@@ -1286,8 +1286,8 @@ static ssize_t lbs_highsnr_write(struct file *file, | |||
1286 | const char __user *userbuf, | 1286 | const char __user *userbuf, |
1287 | size_t count, loff_t *ppos) | 1287 | size_t count, loff_t *ppos) |
1288 | { | 1288 | { |
1289 | lbs_private *priv = file->private_data; | 1289 | struct lbs_private *priv = file->private_data; |
1290 | lbs_adapter *adapter = priv->adapter; | 1290 | struct lbs_adapter *adapter = priv->adapter; |
1291 | ssize_t res, buf_size; | 1291 | ssize_t res, buf_size; |
1292 | int value, freq, subscribed, cmd_len; | 1292 | int value, freq, subscribed, cmd_len; |
1293 | struct cmd_ctrl_node *pcmdnode; | 1293 | struct cmd_ctrl_node *pcmdnode; |
@@ -1365,8 +1365,8 @@ out_unlock: | |||
1365 | static ssize_t lbs_rdmac_read(struct file *file, char __user *userbuf, | 1365 | static ssize_t lbs_rdmac_read(struct file *file, char __user *userbuf, |
1366 | size_t count, loff_t *ppos) | 1366 | size_t count, loff_t *ppos) |
1367 | { | 1367 | { |
1368 | lbs_private *priv = file->private_data; | 1368 | struct lbs_private *priv = file->private_data; |
1369 | lbs_adapter *adapter = priv->adapter; | 1369 | struct lbs_adapter *adapter = priv->adapter; |
1370 | struct lbs_offset_value offval; | 1370 | struct lbs_offset_value offval; |
1371 | ssize_t pos = 0; | 1371 | ssize_t pos = 0; |
1372 | int ret; | 1372 | int ret; |
@@ -1392,7 +1392,7 @@ static ssize_t lbs_rdmac_write(struct file *file, | |||
1392 | const char __user *userbuf, | 1392 | const char __user *userbuf, |
1393 | size_t count, loff_t *ppos) | 1393 | size_t count, loff_t *ppos) |
1394 | { | 1394 | { |
1395 | lbs_private *priv = file->private_data; | 1395 | struct lbs_private *priv = file->private_data; |
1396 | ssize_t res, buf_size; | 1396 | ssize_t res, buf_size; |
1397 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 1397 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
1398 | char *buf = (char *)addr; | 1398 | char *buf = (char *)addr; |
@@ -1414,7 +1414,7 @@ static ssize_t lbs_wrmac_write(struct file *file, | |||
1414 | size_t count, loff_t *ppos) | 1414 | size_t count, loff_t *ppos) |
1415 | { | 1415 | { |
1416 | 1416 | ||
1417 | lbs_private *priv = file->private_data; | 1417 | struct lbs_private *priv = file->private_data; |
1418 | ssize_t res, buf_size; | 1418 | ssize_t res, buf_size; |
1419 | u32 offset, value; | 1419 | u32 offset, value; |
1420 | struct lbs_offset_value offval; | 1420 | struct lbs_offset_value offval; |
@@ -1448,8 +1448,8 @@ out_unlock: | |||
1448 | static ssize_t lbs_rdbbp_read(struct file *file, char __user *userbuf, | 1448 | static ssize_t lbs_rdbbp_read(struct file *file, char __user *userbuf, |
1449 | size_t count, loff_t *ppos) | 1449 | size_t count, loff_t *ppos) |
1450 | { | 1450 | { |
1451 | lbs_private *priv = file->private_data; | 1451 | struct lbs_private *priv = file->private_data; |
1452 | lbs_adapter *adapter = priv->adapter; | 1452 | struct lbs_adapter *adapter = priv->adapter; |
1453 | struct lbs_offset_value offval; | 1453 | struct lbs_offset_value offval; |
1454 | ssize_t pos = 0; | 1454 | ssize_t pos = 0; |
1455 | int ret; | 1455 | int ret; |
@@ -1476,7 +1476,7 @@ static ssize_t lbs_rdbbp_write(struct file *file, | |||
1476 | const char __user *userbuf, | 1476 | const char __user *userbuf, |
1477 | size_t count, loff_t *ppos) | 1477 | size_t count, loff_t *ppos) |
1478 | { | 1478 | { |
1479 | lbs_private *priv = file->private_data; | 1479 | struct lbs_private *priv = file->private_data; |
1480 | ssize_t res, buf_size; | 1480 | ssize_t res, buf_size; |
1481 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 1481 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
1482 | char *buf = (char *)addr; | 1482 | char *buf = (char *)addr; |
@@ -1498,7 +1498,7 @@ static ssize_t lbs_wrbbp_write(struct file *file, | |||
1498 | size_t count, loff_t *ppos) | 1498 | size_t count, loff_t *ppos) |
1499 | { | 1499 | { |
1500 | 1500 | ||
1501 | lbs_private *priv = file->private_data; | 1501 | struct lbs_private *priv = file->private_data; |
1502 | ssize_t res, buf_size; | 1502 | ssize_t res, buf_size; |
1503 | u32 offset, value; | 1503 | u32 offset, value; |
1504 | struct lbs_offset_value offval; | 1504 | struct lbs_offset_value offval; |
@@ -1532,8 +1532,8 @@ out_unlock: | |||
1532 | static ssize_t lbs_rdrf_read(struct file *file, char __user *userbuf, | 1532 | static ssize_t lbs_rdrf_read(struct file *file, char __user *userbuf, |
1533 | size_t count, loff_t *ppos) | 1533 | size_t count, loff_t *ppos) |
1534 | { | 1534 | { |
1535 | lbs_private *priv = file->private_data; | 1535 | struct lbs_private *priv = file->private_data; |
1536 | lbs_adapter *adapter = priv->adapter; | 1536 | struct lbs_adapter *adapter = priv->adapter; |
1537 | struct lbs_offset_value offval; | 1537 | struct lbs_offset_value offval; |
1538 | ssize_t pos = 0; | 1538 | ssize_t pos = 0; |
1539 | int ret; | 1539 | int ret; |
@@ -1560,7 +1560,7 @@ static ssize_t lbs_rdrf_write(struct file *file, | |||
1560 | const char __user *userbuf, | 1560 | const char __user *userbuf, |
1561 | size_t count, loff_t *ppos) | 1561 | size_t count, loff_t *ppos) |
1562 | { | 1562 | { |
1563 | lbs_private *priv = file->private_data; | 1563 | struct lbs_private *priv = file->private_data; |
1564 | ssize_t res, buf_size; | 1564 | ssize_t res, buf_size; |
1565 | unsigned long addr = get_zeroed_page(GFP_KERNEL); | 1565 | unsigned long addr = get_zeroed_page(GFP_KERNEL); |
1566 | char *buf = (char *)addr; | 1566 | char *buf = (char *)addr; |
@@ -1582,7 +1582,7 @@ static ssize_t lbs_wrrf_write(struct file *file, | |||
1582 | size_t count, loff_t *ppos) | 1582 | size_t count, loff_t *ppos) |
1583 | { | 1583 | { |
1584 | 1584 | ||
1585 | lbs_private *priv = file->private_data; | 1585 | struct lbs_private *priv = file->private_data; |
1586 | ssize_t res, buf_size; | 1586 | ssize_t res, buf_size; |
1587 | u32 offset, value; | 1587 | u32 offset, value; |
1588 | struct lbs_offset_value offval; | 1588 | struct lbs_offset_value offval; |
@@ -1675,7 +1675,7 @@ void lbs_debugfs_remove(void) | |||
1675 | return; | 1675 | return; |
1676 | } | 1676 | } |
1677 | 1677 | ||
1678 | void lbs_debugfs_init_one(lbs_private *priv, struct net_device *dev) | 1678 | void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev) |
1679 | { | 1679 | { |
1680 | int i; | 1680 | int i; |
1681 | struct lbs_debugfs_files *files; | 1681 | struct lbs_debugfs_files *files; |
@@ -1728,7 +1728,7 @@ exit: | |||
1728 | return; | 1728 | return; |
1729 | } | 1729 | } |
1730 | 1730 | ||
1731 | void lbs_debugfs_remove_one(lbs_private *priv) | 1731 | void lbs_debugfs_remove_one(struct lbs_private *priv) |
1732 | { | 1732 | { |
1733 | int i; | 1733 | int i; |
1734 | 1734 | ||
@@ -1755,8 +1755,8 @@ void lbs_debugfs_remove_one(lbs_private *priv) | |||
1755 | 1755 | ||
1756 | #ifdef PROC_DEBUG | 1756 | #ifdef PROC_DEBUG |
1757 | 1757 | ||
1758 | #define item_size(n) (FIELD_SIZEOF(lbs_adapter, n)) | 1758 | #define item_size(n) (FIELD_SIZEOF(struct lbs_adapter, n)) |
1759 | #define item_addr(n) (offsetof(lbs_adapter, n)) | 1759 | #define item_addr(n) (offsetof(struct lbs_adapter, n)) |
1760 | 1760 | ||
1761 | 1761 | ||
1762 | struct debug_data { | 1762 | struct debug_data { |
@@ -1765,7 +1765,7 @@ struct debug_data { | |||
1765 | size_t addr; | 1765 | size_t addr; |
1766 | }; | 1766 | }; |
1767 | 1767 | ||
1768 | /* To debug any member of lbs_adapter, simply add one line here. | 1768 | /* To debug any member of struct lbs_adapter, simply add one line here. |
1769 | */ | 1769 | */ |
1770 | static struct debug_data items[] = { | 1770 | static struct debug_data items[] = { |
1771 | {"intcounter", item_size(intcounter), item_addr(intcounter)}, | 1771 | {"intcounter", item_size(intcounter), item_addr(intcounter)}, |
@@ -1892,11 +1892,11 @@ static struct file_operations lbs_debug_fops = { | |||
1892 | /** | 1892 | /** |
1893 | * @brief create debug proc file | 1893 | * @brief create debug proc file |
1894 | * | 1894 | * |
1895 | * @param priv pointer lbs_private | 1895 | * @param priv pointer struct lbs_private |
1896 | * @param dev pointer net_device | 1896 | * @param dev pointer net_device |
1897 | * @return N/A | 1897 | * @return N/A |
1898 | */ | 1898 | */ |
1899 | static void lbs_debug_init(lbs_private * priv, struct net_device *dev) | 1899 | static void lbs_debug_init(struct lbs_private *priv, struct net_device *dev) |
1900 | { | 1900 | { |
1901 | int i; | 1901 | int i; |
1902 | 1902 | ||