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/rx.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/rx.c')
-rw-r--r-- | drivers/net/wireless/libertas/rx.c | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/drivers/net/wireless/libertas/rx.c b/drivers/net/wireless/libertas/rx.c index 204955904340..fa467dfef003 100644 --- a/drivers/net/wireless/libertas/rx.c +++ b/drivers/net/wireless/libertas/rx.c | |||
@@ -35,19 +35,20 @@ struct rx80211packethdr { | |||
35 | void *eth80211_hdr; | 35 | void *eth80211_hdr; |
36 | } __attribute__ ((packed)); | 36 | } __attribute__ ((packed)); |
37 | 37 | ||
38 | static int process_rxed_802_11_packet(lbs_private *priv, struct sk_buff *skb); | 38 | static int process_rxed_802_11_packet(struct lbs_private *priv, |
39 | struct sk_buff *skb); | ||
39 | 40 | ||
40 | /** | 41 | /** |
41 | * @brief This function computes the avgSNR . | 42 | * @brief This function computes the avgSNR . |
42 | * | 43 | * |
43 | * @param priv A pointer to lbs_private structure | 44 | * @param priv A pointer to struct lbs_private structure |
44 | * @return avgSNR | 45 | * @return avgSNR |
45 | */ | 46 | */ |
46 | static u8 lbs_getavgsnr(lbs_private *priv) | 47 | static u8 lbs_getavgsnr(struct lbs_private *priv) |
47 | { | 48 | { |
48 | u8 i; | 49 | u8 i; |
49 | u16 temp = 0; | 50 | u16 temp = 0; |
50 | lbs_adapter *adapter = priv->adapter; | 51 | struct lbs_adapter *adapter = priv->adapter; |
51 | if (adapter->numSNRNF == 0) | 52 | if (adapter->numSNRNF == 0) |
52 | return 0; | 53 | return 0; |
53 | for (i = 0; i < adapter->numSNRNF; i++) | 54 | for (i = 0; i < adapter->numSNRNF; i++) |
@@ -59,14 +60,14 @@ static u8 lbs_getavgsnr(lbs_private *priv) | |||
59 | /** | 60 | /** |
60 | * @brief This function computes the AvgNF | 61 | * @brief This function computes the AvgNF |
61 | * | 62 | * |
62 | * @param priv A pointer to lbs_private structure | 63 | * @param priv A pointer to struct lbs_private structure |
63 | * @return AvgNF | 64 | * @return AvgNF |
64 | */ | 65 | */ |
65 | static u8 lbs_getavgnf(lbs_private *priv) | 66 | static u8 lbs_getavgnf(struct lbs_private *priv) |
66 | { | 67 | { |
67 | u8 i; | 68 | u8 i; |
68 | u16 temp = 0; | 69 | u16 temp = 0; |
69 | lbs_adapter *adapter = priv->adapter; | 70 | struct lbs_adapter *adapter = priv->adapter; |
70 | if (adapter->numSNRNF == 0) | 71 | if (adapter->numSNRNF == 0) |
71 | return 0; | 72 | return 0; |
72 | for (i = 0; i < adapter->numSNRNF; i++) | 73 | for (i = 0; i < adapter->numSNRNF; i++) |
@@ -78,13 +79,13 @@ static u8 lbs_getavgnf(lbs_private *priv) | |||
78 | /** | 79 | /** |
79 | * @brief This function save the raw SNR/NF to our internel buffer | 80 | * @brief This function save the raw SNR/NF to our internel buffer |
80 | * | 81 | * |
81 | * @param priv A pointer to lbs_private structure | 82 | * @param priv A pointer to struct lbs_private structure |
82 | * @param prxpd A pointer to rxpd structure of received packet | 83 | * @param prxpd A pointer to rxpd structure of received packet |
83 | * @return n/a | 84 | * @return n/a |
84 | */ | 85 | */ |
85 | static void lbs_save_rawSNRNF(lbs_private *priv, struct rxpd *p_rx_pd) | 86 | static void lbs_save_rawSNRNF(struct lbs_private *priv, struct rxpd *p_rx_pd) |
86 | { | 87 | { |
87 | lbs_adapter *adapter = priv->adapter; | 88 | struct lbs_adapter *adapter = priv->adapter; |
88 | if (adapter->numSNRNF < DEFAULT_DATA_AVG_FACTOR) | 89 | if (adapter->numSNRNF < DEFAULT_DATA_AVG_FACTOR) |
89 | adapter->numSNRNF++; | 90 | adapter->numSNRNF++; |
90 | adapter->rawSNR[adapter->nextSNRNF] = p_rx_pd->snr; | 91 | adapter->rawSNR[adapter->nextSNRNF] = p_rx_pd->snr; |
@@ -98,13 +99,13 @@ static void lbs_save_rawSNRNF(lbs_private *priv, struct rxpd *p_rx_pd) | |||
98 | /** | 99 | /** |
99 | * @brief This function computes the RSSI in received packet. | 100 | * @brief This function computes the RSSI in received packet. |
100 | * | 101 | * |
101 | * @param priv A pointer to lbs_private structure | 102 | * @param priv A pointer to struct lbs_private structure |
102 | * @param prxpd A pointer to rxpd structure of received packet | 103 | * @param prxpd A pointer to rxpd structure of received packet |
103 | * @return n/a | 104 | * @return n/a |
104 | */ | 105 | */ |
105 | static void lbs_compute_rssi(lbs_private *priv, struct rxpd *p_rx_pd) | 106 | static void lbs_compute_rssi(struct lbs_private *priv, struct rxpd *p_rx_pd) |
106 | { | 107 | { |
107 | lbs_adapter *adapter = priv->adapter; | 108 | struct lbs_adapter *adapter = priv->adapter; |
108 | 109 | ||
109 | lbs_deb_enter(LBS_DEB_RX); | 110 | lbs_deb_enter(LBS_DEB_RX); |
110 | 111 | ||
@@ -134,7 +135,7 @@ static void lbs_compute_rssi(lbs_private *priv, struct rxpd *p_rx_pd) | |||
134 | lbs_deb_leave(LBS_DEB_RX); | 135 | lbs_deb_leave(LBS_DEB_RX); |
135 | } | 136 | } |
136 | 137 | ||
137 | void lbs_upload_rx_packet(lbs_private *priv, struct sk_buff *skb) | 138 | void lbs_upload_rx_packet(struct lbs_private *priv, struct sk_buff *skb) |
138 | { | 139 | { |
139 | lbs_deb_rx("skb->data %p\n", skb->data); | 140 | lbs_deb_rx("skb->data %p\n", skb->data); |
140 | 141 | ||
@@ -154,13 +155,13 @@ void lbs_upload_rx_packet(lbs_private *priv, struct sk_buff *skb) | |||
154 | * @brief This function processes received packet and forwards it | 155 | * @brief This function processes received packet and forwards it |
155 | * to kernel/upper layer | 156 | * to kernel/upper layer |
156 | * | 157 | * |
157 | * @param priv A pointer to lbs_private | 158 | * @param priv A pointer to struct lbs_private |
158 | * @param skb A pointer to skb which includes the received packet | 159 | * @param skb A pointer to skb which includes the received packet |
159 | * @return 0 or -1 | 160 | * @return 0 or -1 |
160 | */ | 161 | */ |
161 | int lbs_process_rxed_packet(lbs_private *priv, struct sk_buff *skb) | 162 | int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb) |
162 | { | 163 | { |
163 | lbs_adapter *adapter = priv->adapter; | 164 | struct lbs_adapter *adapter = priv->adapter; |
164 | int ret = 0; | 165 | int ret = 0; |
165 | 166 | ||
166 | struct rxpackethdr *p_rx_pkt; | 167 | struct rxpackethdr *p_rx_pkt; |
@@ -319,13 +320,14 @@ static u8 convert_mv_rate_to_radiotap(u8 rate) | |||
319 | * @brief This function processes a received 802.11 packet and forwards it | 320 | * @brief This function processes a received 802.11 packet and forwards it |
320 | * to kernel/upper layer | 321 | * to kernel/upper layer |
321 | * | 322 | * |
322 | * @param priv A pointer to lbs_private | 323 | * @param priv A pointer to struct lbs_private |
323 | * @param skb A pointer to skb which includes the received packet | 324 | * @param skb A pointer to skb which includes the received packet |
324 | * @return 0 or -1 | 325 | * @return 0 or -1 |
325 | */ | 326 | */ |
326 | static int process_rxed_802_11_packet(lbs_private *priv, struct sk_buff *skb) | 327 | static int process_rxed_802_11_packet(struct lbs_private *priv, |
328 | struct sk_buff *skb) | ||
327 | { | 329 | { |
328 | lbs_adapter *adapter = priv->adapter; | 330 | struct lbs_adapter *adapter = priv->adapter; |
329 | int ret = 0; | 331 | int ret = 0; |
330 | 332 | ||
331 | struct rx80211packethdr *p_rx_pkt; | 333 | struct rx80211packethdr *p_rx_pkt; |