qcacld-3.0: Rename osif_*_sync_create_with_trans()
Rename the osif_*_sync_create_with_trans() to a slightly more appropriate osid_*_sync_create_and_trans(), to help convey the fact that the transition does not end when the function returns. Change-Id: I5606fb613d786d65de773dae49fe8ad431b5342f CRs-Fixed: 2406713
This commit is contained in:
parent
f39d2374a2
commit
c0591c0308
@ -459,7 +459,7 @@ static int hdd_soc_probe(struct device *dev,
|
||||
|
||||
hdd_info("probing driver");
|
||||
|
||||
errno = osif_psoc_sync_create_with_trans(dsc_driver, &psoc_sync);
|
||||
errno = osif_psoc_sync_create_and_trans(dsc_driver, &psoc_sync);
|
||||
if (errno)
|
||||
return errno;
|
||||
|
||||
|
@ -769,7 +769,7 @@ _wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
|
||||
struct osif_vdev_sync *vdev_sync;
|
||||
int errno;
|
||||
|
||||
errno = osif_vdev_sync_create_with_trans(wiphy_dev(wiphy), &vdev_sync);
|
||||
errno = osif_vdev_sync_create_and_trans(wiphy_dev(wiphy), &vdev_sync);
|
||||
if (errno)
|
||||
return ERR_PTR(errno);
|
||||
|
||||
|
@ -400,8 +400,8 @@ int wlan_hdd_request_pre_cac(struct hdd_context *hdd_ctx, uint8_t channel)
|
||||
struct osif_vdev_sync *vdev_sync;
|
||||
int errno;
|
||||
|
||||
errno = osif_vdev_sync_create_with_trans(hdd_ctx->parent_dev,
|
||||
&vdev_sync);
|
||||
errno = osif_vdev_sync_create_and_trans(hdd_ctx->parent_dev,
|
||||
&vdev_sync);
|
||||
if (errno)
|
||||
return errno;
|
||||
|
||||
|
@ -297,7 +297,7 @@ static int os_if_nan_process_ndi_create(struct wlan_objmgr_psoc *psoc,
|
||||
if (errno)
|
||||
return errno;
|
||||
|
||||
errno = osif_vdev_sync_create_with_trans(dev, &vdev_sync);
|
||||
errno = osif_vdev_sync_create_and_trans(dev, &vdev_sync);
|
||||
if (errno)
|
||||
return errno;
|
||||
|
||||
|
@ -40,7 +40,7 @@ osif_psoc_sync_create(struct dsc_driver *dsc_driver,
|
||||
struct osif_psoc_sync **out_psoc_sync);
|
||||
|
||||
/**
|
||||
* osif_psoc_sync_create_with_trans() - create a psoc synchronization context
|
||||
* osif_psoc_sync_create_and_trans() - create a psoc synchronization context
|
||||
* @dsc_driver: parent dsc_driver to the psoc
|
||||
* @out_psoc_sync: out parameter for the new synchronization context
|
||||
*
|
||||
@ -48,13 +48,13 @@ osif_psoc_sync_create(struct dsc_driver *dsc_driver,
|
||||
*
|
||||
* Return: Errno
|
||||
*/
|
||||
#define osif_psoc_sync_create_with_trans(dsc_driver, out_psoc_sync) \
|
||||
__osif_psoc_sync_create_with_trans(dsc_driver, out_psoc_sync, __func__)
|
||||
#define osif_psoc_sync_create_and_trans(dsc_driver, out_psoc_sync) \
|
||||
__osif_psoc_sync_create_and_trans(dsc_driver, out_psoc_sync, __func__)
|
||||
|
||||
qdf_must_check int
|
||||
__osif_psoc_sync_create_with_trans(struct dsc_driver *dsc_driver,
|
||||
struct osif_psoc_sync **out_psoc_sync,
|
||||
const char *desc);
|
||||
__osif_psoc_sync_create_and_trans(struct dsc_driver *dsc_driver,
|
||||
struct osif_psoc_sync **out_psoc_sync,
|
||||
const char *desc);
|
||||
|
||||
/**
|
||||
* osif_psoc_sync_destroy() - destroy a psoc synchronization context
|
||||
|
@ -40,7 +40,7 @@ osif_vdev_sync_create(struct device *dev,
|
||||
struct osif_vdev_sync **out_vdev_sync);
|
||||
|
||||
/**
|
||||
* osif_vdev_sync_create_with_trans() - create a vdev synchronization context
|
||||
* osif_vdev_sync_create_and_trans() - create a vdev synchronization context
|
||||
* @dev: parent device to the vdev
|
||||
* @out_vdev_sync: out parameter for the new synchronization context
|
||||
*
|
||||
@ -48,13 +48,13 @@ osif_vdev_sync_create(struct device *dev,
|
||||
*
|
||||
* Return: Errno
|
||||
*/
|
||||
#define osif_vdev_sync_create_with_trans(dev, out_vdev_sync) \
|
||||
__osif_vdev_sync_create_with_trans(dev, out_vdev_sync, __func__)
|
||||
#define osif_vdev_sync_create_and_trans(dev, out_vdev_sync) \
|
||||
__osif_vdev_sync_create_and_trans(dev, out_vdev_sync, __func__)
|
||||
|
||||
qdf_must_check int
|
||||
__osif_vdev_sync_create_with_trans(struct device *dev,
|
||||
struct osif_vdev_sync **out_vdev_sync,
|
||||
const char *desc);
|
||||
__osif_vdev_sync_create_and_trans(struct device *dev,
|
||||
struct osif_vdev_sync **out_vdev_sync,
|
||||
const char *desc);
|
||||
|
||||
/**
|
||||
* osif_vdev_sync_destroy() - destroy a vdev synchronization context
|
||||
|
@ -126,9 +126,9 @@ sync_put:
|
||||
return qdf_status_to_os_return(status);
|
||||
}
|
||||
|
||||
int __osif_psoc_sync_create_with_trans(struct dsc_driver *dsc_driver,
|
||||
struct osif_psoc_sync **out_psoc_sync,
|
||||
const char *desc)
|
||||
int __osif_psoc_sync_create_and_trans(struct dsc_driver *dsc_driver,
|
||||
struct osif_psoc_sync **out_psoc_sync,
|
||||
const char *desc)
|
||||
{
|
||||
struct osif_psoc_sync *psoc_sync;
|
||||
QDF_STATUS status;
|
||||
|
@ -125,9 +125,9 @@ sync_put:
|
||||
return qdf_status_to_os_return(status);
|
||||
}
|
||||
|
||||
int __osif_vdev_sync_create_with_trans(struct device *dev,
|
||||
struct osif_vdev_sync **out_vdev_sync,
|
||||
const char *desc)
|
||||
int __osif_vdev_sync_create_and_trans(struct device *dev,
|
||||
struct osif_vdev_sync **out_vdev_sync,
|
||||
const char *desc)
|
||||
{
|
||||
struct osif_vdev_sync *vdev_sync;
|
||||
QDF_STATUS status;
|
||||
|
Loading…
Reference in New Issue
Block a user