qcacld-3.0: Replace hdd_context_t in wlan_hdd_nan.[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_context_t typedef does not meet any of those criteria, so replace references to it with a reference to the underlying struct. Change-Id: I5f846c4b234bd55ff3120fd69ea13332e3e80d74 CRs-Fixed: 2100180
This commit is contained in:
@@ -54,7 +54,7 @@ bool wlan_hdd_nan_is_supported(void);
|
|||||||
* Return: none
|
* Return: none
|
||||||
*/
|
*/
|
||||||
static inline void hdd_nan_populate_cds_config(struct cds_config_info *cds_cfg,
|
static inline void hdd_nan_populate_cds_config(struct cds_config_info *cds_cfg,
|
||||||
hdd_context_t *hdd_ctx)
|
struct hdd_context *hdd_ctx)
|
||||||
{
|
{
|
||||||
cds_cfg->is_nan_enabled = hdd_ctx->config->enable_nan_support;
|
cds_cfg->is_nan_enabled = hdd_ctx->config->enable_nan_support;
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ static inline void hdd_nan_populate_cds_config(struct cds_config_info *cds_cfg,
|
|||||||
* Return: none
|
* Return: none
|
||||||
*/
|
*/
|
||||||
static inline void hdd_nan_populate_pmo_config(struct pmo_psoc_cfg *pmo_cfg,
|
static inline void hdd_nan_populate_pmo_config(struct pmo_psoc_cfg *pmo_cfg,
|
||||||
hdd_context_t *hdd_ctx)
|
struct hdd_context *hdd_ctx)
|
||||||
{
|
{
|
||||||
pmo_cfg->nan_enable = hdd_ctx->config->enable_nan_support;
|
pmo_cfg->nan_enable = hdd_ctx->config->enable_nan_support;
|
||||||
}
|
}
|
||||||
@@ -79,12 +79,12 @@ static inline bool wlan_hdd_nan_is_supported(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
static inline void hdd_nan_populate_cds_config(struct cds_config_info *cds_cfg,
|
static inline void hdd_nan_populate_cds_config(struct cds_config_info *cds_cfg,
|
||||||
hdd_context_t *hdd_ctx)
|
struct hdd_context *hdd_ctx)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void hdd_nan_populate_pmo_config(struct pmo_psoc_cfg *pmo_cfg,
|
static inline void hdd_nan_populate_pmo_config(struct pmo_psoc_cfg *pmo_cfg,
|
||||||
hdd_context_t *hdd_ctx)
|
struct hdd_context *hdd_ctx)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ static int __wlan_hdd_cfg80211_nan_request(struct wiphy *wiphy,
|
|||||||
tNanRequestReq nan_req;
|
tNanRequestReq nan_req;
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
hdd_context_t *hdd_ctx = wiphy_priv(wiphy);
|
struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
||||||
|
|
||||||
ENTER_DEV(wdev->netdev);
|
ENTER_DEV(wdev->netdev);
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ int wlan_hdd_cfg80211_nan_request(struct wiphy *wiphy,
|
|||||||
*/
|
*/
|
||||||
void wlan_hdd_cfg80211_nan_callback(void *ctx, tSirNanEvent *msg)
|
void wlan_hdd_cfg80211_nan_callback(void *ctx, tSirNanEvent *msg)
|
||||||
{
|
{
|
||||||
hdd_context_t *hdd_ctx = ctx;
|
struct hdd_context *hdd_ctx = ctx;
|
||||||
struct sk_buff *vendor_event;
|
struct sk_buff *vendor_event;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user