From da47af82ecc38c8720e40dd8963c4b0f0f60452c Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 29 Aug 2017 14:26:44 -0700 Subject: [PATCH] qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_oemdata.c 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: Id43c38784aadb07b5352d9ecc2c7dcb0e31dbcd8 CRs-Fixed: 2101045 --- core/hdd/src/wlan_hdd_oemdata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_oemdata.c b/core/hdd/src/wlan_hdd_oemdata.c index 79a9b2c3e4f7..01bd3c8c7af4 100644 --- a/core/hdd/src/wlan_hdd_oemdata.c +++ b/core/hdd/src/wlan_hdd_oemdata.c @@ -60,7 +60,7 @@ static struct hdd_context *p_hdd_ctx; * * Return: error code */ -static int populate_oem_data_cap(hdd_adapter_t *adapter, +static int populate_oem_data_cap(struct hdd_adapter *adapter, struct oem_data_cap *data_cap) { QDF_STATUS status; @@ -143,7 +143,7 @@ int iw_get_oem_data_cap(struct net_device *dev, int status; struct oem_data_cap oemDataCap = { {0} }; struct oem_data_cap *pHddOemDataCap; - hdd_adapter_t *pAdapter = (netdev_priv(dev)); + struct hdd_adapter *pAdapter = (netdev_priv(dev)); struct hdd_context *pHddContext; int ret; @@ -185,7 +185,7 @@ static void send_oem_reg_rsp_nlink_msg(void) uint8_t *vdevId; hdd_adapter_list_node_t *pAdapterNode = NULL; hdd_adapter_list_node_t *pNext = NULL; - hdd_adapter_t *pAdapter = NULL; + struct hdd_adapter *pAdapter = NULL; QDF_STATUS status = 0; /* OEM msg is always to a specific process & cannot be a broadcast */ @@ -353,7 +353,7 @@ void hdd_send_oem_data_rsp_msg(struct oem_data_rsp *oem_data_rsp) */ static QDF_STATUS oem_process_data_req_msg(int oem_data_len, char *oem_data) { - hdd_adapter_t *adapter = NULL; + struct hdd_adapter *adapter = NULL; struct oem_data_req oem_data_req; QDF_STATUS status = QDF_STATUS_SUCCESS; @@ -624,7 +624,7 @@ static int oem_process_get_cap_req_msg(void) struct oem_get_capability_rsp *cap_rsp; struct oem_data_cap data_cap = { {0} }; struct sme_oem_capability oem_cap; - hdd_adapter_t *adapter; + struct hdd_adapter *adapter; struct sk_buff *skb; struct nlmsghdr *nlh; tAniMsgHdr *ani_hdr;