aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/decl.h
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-11-23 09:43:44 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:54 -0500
commit69f9032d9dfeb763b467fdbe8cf5938f5457083a (patch)
tree613598938e17e1a7514e0da3817f3cfebbe346a9 /drivers/net/wireless/libertas/decl.h
parent96287ac4f7b387acbe17e24b5e1bcbf3bc0e75cd (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/decl.h')
-rw-r--r--drivers/net/wireless/libertas/decl.h88
1 files changed, 48 insertions, 40 deletions
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h
index 7dd76f8e8d2d..74187f34666f 100644
--- a/drivers/net/wireless/libertas/decl.h
+++ b/drivers/net/wireless/libertas/decl.h
@@ -12,71 +12,79 @@
12 12
13/** Function Prototype Declaration */ 13/** Function Prototype Declaration */
14struct lbs_private; 14struct lbs_private;
15struct lbs_adapter;
15struct sk_buff; 16struct sk_buff;
16struct net_device; 17struct net_device;
17 18
18int lbs_set_mac_packet_filter(lbs_private * priv); 19int lbs_set_mac_packet_filter(struct lbs_private *priv);
19 20
20void lbs_send_tx_feedback(lbs_private * priv); 21void lbs_send_tx_feedback(struct lbs_private *priv);
21 22
22int lbs_free_cmd_buffer(lbs_private * priv); 23int lbs_free_cmd_buffer(struct lbs_private *priv);
23struct cmd_ctrl_node; 24struct cmd_ctrl_node;
24struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(lbs_private * priv); 25struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(struct lbs_private *priv);
25 26
26void lbs_set_cmd_ctrl_node(lbs_private * priv, 27void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
27 struct cmd_ctrl_node *ptempnode, 28 struct cmd_ctrl_node *ptempnode,
28 u32 cmd_oid, u16 wait_option, void *pdata_buf); 29 u32 cmd_oid, u16 wait_option, void *pdata_buf);
29 30
30int lbs_prepare_and_send_command(lbs_private * priv, 31int lbs_prepare_and_send_command(struct lbs_private *priv,
31 u16 cmd_no, 32 u16 cmd_no,
32 u16 cmd_action, 33 u16 cmd_action,
33 u16 wait_option, u32 cmd_oid, void *pdata_buf); 34 u16 wait_option, u32 cmd_oid, void *pdata_buf);
34 35
35void lbs_queue_cmd(lbs_adapter *adapter, struct cmd_ctrl_node *cmdnode, u8 addtail); 36void lbs_queue_cmd(struct lbs_adapter *adapter,
37 struct cmd_ctrl_node *cmdnode,
38 u8 addtail);
36 39
37int lbs_allocate_cmd_buffer(lbs_private * priv); 40int lbs_allocate_cmd_buffer(struct lbs_private *priv);
38int lbs_execute_next_command(lbs_private * priv); 41int lbs_execute_next_command(struct lbs_private *priv);
39int lbs_process_event(lbs_private * priv); 42int lbs_process_event(struct lbs_private *priv);
40void lbs_interrupt(struct net_device *); 43void lbs_interrupt(struct net_device *);
41int lbs_set_radio_control(lbs_private * priv); 44int lbs_set_radio_control(struct lbs_private *priv);
42u32 lbs_fw_index_to_data_rate(u8 index); 45u32 lbs_fw_index_to_data_rate(u8 index);
43u8 lbs_data_rate_to_fw_index(u32 rate); 46u8 lbs_data_rate_to_fw_index(u32 rate);
44void lbs_get_fwversion(lbs_adapter *adapter, char *fwversion, int maxlen); 47void lbs_get_fwversion(struct lbs_adapter *adapter,
48 char *fwversion,
49 int maxlen);
45 50
46void lbs_upload_rx_packet(lbs_private * priv, struct sk_buff *skb); 51void lbs_upload_rx_packet(struct lbs_private *priv, struct sk_buff *skb);
47 52
48/** The proc fs interface */ 53/** The proc fs interface */
49int lbs_process_rx_command(lbs_private * priv); 54int lbs_process_rx_command(struct lbs_private *priv);
50int lbs_process_tx(lbs_private * priv, struct sk_buff *skb); 55int lbs_process_tx(struct lbs_private *priv, struct sk_buff *skb);
51void __lbs_cleanup_and_insert_cmd(lbs_private * priv, 56void __lbs_cleanup_and_insert_cmd(struct lbs_private *priv,
52 struct cmd_ctrl_node *ptempcmd); 57 struct cmd_ctrl_node *ptempcmd);
53 58
54int lbs_set_regiontable(lbs_private * priv, u8 region, u8 band); 59int lbs_set_regiontable(struct lbs_private *priv, u8 region, u8 band);
55 60
56int lbs_process_rxed_packet(lbs_private * priv, struct sk_buff *); 61int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
57 62
58void lbs_ps_sleep(lbs_private * priv, int wait_option); 63void lbs_ps_sleep(struct lbs_private *priv, int wait_option);
59void lbs_ps_confirm_sleep(lbs_private * priv, u16 psmode); 64void lbs_ps_confirm_sleep(struct lbs_private *priv, u16 psmode);
60void lbs_ps_wakeup(lbs_private * priv, int wait_option); 65void lbs_ps_wakeup(struct lbs_private *priv, int wait_option);
61 66
62void lbs_tx_runqueue(lbs_private *priv); 67void lbs_tx_runqueue(struct lbs_private *priv);
63 68
64struct chan_freq_power *lbs_find_cfp_by_band_and_channel( 69struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
65 lbs_adapter *adapter, u8 band, u16 channel); 70 struct lbs_adapter *adapter,
71 u8 band,
72 u16 channel);
66 73
67void lbs_mac_event_disconnected(lbs_private * priv); 74void lbs_mac_event_disconnected(struct lbs_private *priv);
68 75
69void lbs_send_iwevcustom_event(lbs_private *priv, s8 *str); 76void lbs_send_iwevcustom_event(struct lbs_private *priv, s8 *str);
70 77
71/* main.c */ 78/* main.c */
72struct chan_freq_power *lbs_get_region_cfp_table(u8 region, u8 band, 79struct chan_freq_power *lbs_get_region_cfp_table(u8 region,
73 int *cfp_no); 80 u8 band,
74lbs_private *lbs_add_card(void *card, struct device *dmdev); 81 int *cfp_no);
75int lbs_remove_card(lbs_private *priv); 82struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
76int lbs_start_card(lbs_private *priv); 83int lbs_remove_card(struct lbs_private *priv);
77int lbs_stop_card(lbs_private *priv); 84int lbs_start_card(struct lbs_private *priv);
78int lbs_add_mesh(lbs_private *priv, struct device *dev); 85int lbs_stop_card(struct lbs_private *priv);
79void lbs_remove_mesh(lbs_private *priv); 86int lbs_add_mesh(struct lbs_private *priv, struct device *dev);
80int lbs_reset_device(lbs_private *priv); 87void lbs_remove_mesh(struct lbs_private *priv);
88int lbs_reset_device(struct lbs_private *priv);
81 89
82#endif 90#endif