Browse Source

qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_lro.[ch]

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Iec3c0b0b2e59ac05ad352f5b4e6e2b4528a8b5be
CRs-Fixed: 2101051
Jeff Johnson 7 years ago
parent
commit
a56e968a35
2 changed files with 3 additions and 3 deletions
  1. 2 2
      core/hdd/inc/wlan_hdd_lro.h
  2. 1 1
      core/hdd/src/wlan_hdd_lro.c

+ 2 - 2
core/hdd/inc/wlan_hdd_lro.h

@@ -48,7 +48,7 @@ enum hdd_lro_rx_status {
 int hdd_lro_init(struct hdd_context *hdd_ctx);
 
 enum hdd_lro_rx_status hdd_lro_rx(struct hdd_context *hdd_ctx,
-	 hdd_adapter_t *adapter, struct sk_buff *skb);
+	 struct hdd_adapter *adapter, struct sk_buff *skb);
 void hdd_lro_display_stats(struct hdd_context *hdd_ctx);
 #else
 static inline int hdd_lro_init(struct hdd_context *hdd_ctx)
@@ -57,7 +57,7 @@ static inline int hdd_lro_init(struct hdd_context *hdd_ctx)
 }
 
 static inline enum hdd_lro_rx_status hdd_lro_rx(struct hdd_context *hdd_ctx,
-	 hdd_adapter_t *adapter, struct sk_buff *skb)
+	 struct hdd_adapter *adapter, struct sk_buff *skb)
 {
 	return HDD_LRO_NO_RX;
 }

+ 1 - 1
core/hdd/src/wlan_hdd_lro.c

@@ -136,7 +136,7 @@ static qdf_lro_ctx_t wlan_hdd_get_lro_ctx(struct sk_buff *skb)
  * HDD_LRO_NO_RX - frame not delivered
  */
 enum hdd_lro_rx_status hdd_lro_rx(struct hdd_context *hdd_ctx,
-	 hdd_adapter_t *adapter, struct sk_buff *skb)
+	 struct hdd_adapter *adapter, struct sk_buff *skb)
 {
 	qdf_lro_ctx_t ctx;
 	enum hdd_lro_rx_status status = HDD_LRO_NO_RX;