qcacmn: Change to remove void pointer usage for HIF handle
Add code to remove void pointer usage for hif_handle and use opaque pointer hif_opaque_softc and also use cdp_soc for opaque DP soc handle Change-Id: I2896f7704ffb809214c5b08756c4b8673307fd9e CRs-Fixed: 2487247
This commit is contained in:
@@ -1323,15 +1323,39 @@ QDF_STATUS dp_tx_add_to_comp_queue(struct dp_soc *soc,
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* dp_vdev_to_cdp_vdev() - typecast dp vdev to cdp vdev
|
||||
* @vdev: DP vdev handle
|
||||
*
|
||||
* Return: struct cdp_vdev pointer
|
||||
*/
|
||||
static inline
|
||||
struct cdp_vdev *dp_vdev_to_cdp_vdev(struct dp_vdev *vdev)
|
||||
{
|
||||
return (struct cdp_vdev *)vdev;
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_pdev_to_cdp_pdev() - typecast dp pdev to cdp pdev
|
||||
* @pdev: DP pdev handle
|
||||
*
|
||||
* Return: struct cdp_pdev pointer
|
||||
*/
|
||||
static inline
|
||||
struct cdp_pdev *dp_pdev_to_cdp_pdev(struct dp_pdev *pdev)
|
||||
{
|
||||
return (struct cdp_pdev *)pdev;
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_soc_to_cdp_soc() - typecast dp psoc to cdp psoc
|
||||
* @psoc: DP psoc handle
|
||||
*
|
||||
* Return: struct cdp_soc pointer
|
||||
*/
|
||||
static inline
|
||||
struct cdp_soc *dp_soc_to_cdp_soc(struct dp_soc *psoc)
|
||||
{
|
||||
return (struct cdp_soc *)psoc;
|
||||
}
|
||||
#endif /* #ifndef _DP_INTERNAL_H_ */
|
||||
|
Reference in New Issue
Block a user