qcacld-3.0: Replace hdd_context_t in wlan_hdd_lpass.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_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I5ac8829606eda6940deebe13037e15e47bed6f9b
CRs-Fixed: 2100188
This commit is contained in:
Jeff Johnson 2017-08-28 11:57:24 -07:00 • committed by snandini
commit d85b761567

View file

@ -47,7 +47,7 @@
*
* Fill in the channel info to chan_info structure.
*/
static void wlan_hdd_get_channel_info(hdd_context_t *hdd_ctx,
static void wlan_hdd_get_channel_info(struct hdd_context *hdd_ctx,
struct svc_channel_info *chan_info,
uint32_t chan_id)
{
@ -93,7 +93,7 @@ static int wlan_hdd_gen_wlan_status_pack(struct wlan_status_data *data,
hdd_station_ctx_t *sta_ctx,
uint8_t is_on, uint8_t is_connected)
{
hdd_context_t *hdd_ctx = NULL;
struct hdd_context *hdd_ctx = NULL;
uint8_t buflen = WLAN_SVC_COUNTRY_CODE_LEN;
int i;
uint32_t chan_id;
@ -213,7 +213,7 @@ static void wlan_hdd_send_status_pkg(struct hdd_adapter *adapter,
{
int ret = 0;
struct wlan_status_data *data = NULL;
hdd_context_t *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (!hdd_ctx)
return;
@ -253,7 +253,7 @@ static void wlan_hdd_send_version_pkg(uint32_t fw_version,
{
int ret = 0;
struct wlan_version_data data;
hdd_context_t *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (!hdd_ctx)
return;