qcacmn: Change to clean up of void pointers
Add code to cleanup usages of void pointer usages in DP code. Change-Id: I0736bcc0a547d858ed02f1ee59084a44e5fe4bec CRs-Fixed: 2487249
This commit is contained in:
@@ -1238,7 +1238,7 @@ static inline int dp_srng_access_start(struct dp_intr *int_ctx,
|
||||
struct dp_soc *dp_soc,
|
||||
hal_ring_handle_t hal_ring_hdl)
|
||||
{
|
||||
void *hal_soc = dp_soc->hal_soc;
|
||||
hal_soc_handle_t hal_soc = dp_soc->hal_soc;
|
||||
|
||||
return hal_srng_access_start(hal_soc, hal_ring_hdl);
|
||||
}
|
||||
@@ -1247,7 +1247,7 @@ static inline void dp_srng_access_end(struct dp_intr *int_ctx,
|
||||
struct dp_soc *dp_soc,
|
||||
hal_ring_handle_t hal_ring_hdl)
|
||||
{
|
||||
void *hal_soc = dp_soc->hal_soc;
|
||||
hal_soc_handle_t hal_soc = dp_soc->hal_soc;
|
||||
|
||||
return hal_srng_access_end(hal_soc, hal_ring_hdl);
|
||||
}
|
||||
@@ -1358,4 +1358,17 @@ struct cdp_soc *dp_soc_to_cdp_soc(struct dp_soc *psoc)
|
||||
{
|
||||
return (struct cdp_soc *)psoc;
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_soc_to_cdp_soc_t() - typecast dp psoc to
|
||||
* ol txrx soc handle
|
||||
* @psoc: DP psoc handle
|
||||
*
|
||||
* Return: struct cdp_soc_t pointer
|
||||
*/
|
||||
static inline
|
||||
struct cdp_soc_t *dp_soc_to_cdp_soc_t(struct dp_soc *psoc)
|
||||
{
|
||||
return (struct cdp_soc_t *)psoc;
|
||||
}
|
||||
#endif /* #ifndef _DP_INTERNAL_H_ */
|
||||
|
Reference in New Issue
Block a user