qcacmn: Rename target_if_open/close() to target_if_init/deinit()
Rename target_if_open() to target_if_init() and target_if_close() to target_if_deinit() as these handles global target_if initializations. Change-Id: I935eb6461f1774043adaa0539b6e8e0ea9824382 CRs-Fixed: 2352015
This commit is contained in:
@@ -319,21 +319,21 @@ struct target_pdev_info {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* target_if_open() - target_if open
|
* target_if_init() - target_if Initialization
|
||||||
* @get_wmi_handle: function pointer to get wmi handle
|
* @get_wmi_handle: function pointer to get wmi handle
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS
|
* Return: QDF_STATUS
|
||||||
*/
|
*/
|
||||||
QDF_STATUS target_if_open(get_psoc_handle_callback psoc_hdl_cb);
|
QDF_STATUS target_if_init(get_psoc_handle_callback psoc_hdl_cb);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* target_if_close() - Close target_if
|
* target_if_deinit() - Close target_if
|
||||||
* @scn_handle: scn handle
|
* @scn_handle: scn handle
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS_SUCCESS - in case of success
|
* Return: QDF_STATUS_SUCCESS - in case of success
|
||||||
*/
|
*/
|
||||||
QDF_STATUS target_if_close(void);
|
QDF_STATUS target_if_deinit(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* target_if_store_pdev_target_if_ctx() - stores objmgr pdev in target if ctx
|
* target_if_store_pdev_target_if_ctx() - stores objmgr pdev in target if ctx
|
||||||
|
@@ -130,7 +130,7 @@ static QDF_STATUS target_if_direct_buf_rx_deinit(void)
|
|||||||
}
|
}
|
||||||
#endif /* DIRECT_BUF_RX_ENABLE */
|
#endif /* DIRECT_BUF_RX_ENABLE */
|
||||||
|
|
||||||
QDF_STATUS target_if_open(get_psoc_handle_callback psoc_hdl_cb)
|
QDF_STATUS target_if_init(get_psoc_handle_callback psoc_hdl_cb)
|
||||||
{
|
{
|
||||||
g_target_if_ctx = qdf_mem_malloc(sizeof(*g_target_if_ctx));
|
g_target_if_ctx = qdf_mem_malloc(sizeof(*g_target_if_ctx));
|
||||||
if (!g_target_if_ctx) {
|
if (!g_target_if_ctx) {
|
||||||
@@ -151,7 +151,7 @@ QDF_STATUS target_if_open(get_psoc_handle_callback psoc_hdl_cb)
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
QDF_STATUS target_if_close(void)
|
QDF_STATUS target_if_deinit(void)
|
||||||
{
|
{
|
||||||
if (!g_target_if_ctx) {
|
if (!g_target_if_ctx) {
|
||||||
QDF_ASSERT(0);
|
QDF_ASSERT(0);
|
||||||
@@ -174,7 +174,8 @@ QDF_STATUS target_if_close(void)
|
|||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
qdf_export_symbol(target_if_close);
|
|
||||||
|
qdf_export_symbol(target_if_deinit);
|
||||||
|
|
||||||
QDF_STATUS target_if_store_pdev_target_if_ctx(
|
QDF_STATUS target_if_store_pdev_target_if_ctx(
|
||||||
get_pdev_handle_callback pdev_hdl_cb)
|
get_pdev_handle_callback pdev_hdl_cb)
|
||||||
|
Reference in New Issue
Block a user