mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacld-3.0: Rename pGetTemperatureCb & pTemperatureCbContext
The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename pGetTemperatureCb and pTemperatureCbContext in struct sme_context to be compliant. Change-Id: Ie87e87b8fffc89510d72a8b849282975b4202999 CRs-Fixed: 2400320
This commit is contained in:
parent
e7aa5cd3b0
commit
3f3ad25bfb
2 changed files with 19 additions and 21 deletions
|
|
@ -303,8 +303,8 @@ struct sme_context {
|
|||
int (*get_tsf_cb)(void *pcb_cxt, struct stsf *ptsf);
|
||||
void *get_tsf_cxt;
|
||||
/* get temperature event context and callback */
|
||||
void *pTemperatureCbContext;
|
||||
void (*pGetTemperatureCb)(int temperature, void *context);
|
||||
void *temperature_cb_context;
|
||||
void (*temperature_cb)(int temperature, void *context);
|
||||
uint8_t miracast_value;
|
||||
struct ps_global_info ps_global_info;
|
||||
rssi_threshold_breached_cb rssi_threshold_breached_cb;
|
||||
|
|
|
|||
|
|
@ -2117,9 +2117,9 @@ QDF_STATUS sme_process_msg(struct mac_context *mac, struct scheduler_msg *pMsg)
|
|||
break;
|
||||
}
|
||||
case eWNI_SME_MSG_GET_TEMPERATURE_IND:
|
||||
if (mac->sme.pGetTemperatureCb)
|
||||
mac->sme.pGetTemperatureCb(pMsg->bodyval,
|
||||
mac->sme.pTemperatureCbContext);
|
||||
if (mac->sme.temperature_cb)
|
||||
mac->sme.temperature_cb(pMsg->bodyval,
|
||||
mac->sme.temperature_cb_context);
|
||||
break;
|
||||
case eWNI_SME_SNR_IND:
|
||||
{
|
||||
|
|
@ -10357,19 +10357,17 @@ QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(mac_handle_t mac_handle,
|
|||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* sme_get_temperature() -
|
||||
* SME API to get the pdev temperature
|
||||
*
|
||||
* mac_handle
|
||||
* temperature context
|
||||
* pCallbackfn: callback fn with response (temperature)
|
||||
* Return QDF_STATUS
|
||||
/**
|
||||
* sme_get_temperature() - SME API to get the pdev temperature
|
||||
* @mac_handle: Handle to global MAC context
|
||||
* @cb_context: temperature callback context
|
||||
* @cb: callback function with response (temperature)
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS sme_get_temperature(mac_handle_t mac_handle,
|
||||
void *tempContext,
|
||||
void (*pCallbackfn)(int temperature,
|
||||
void *pContext))
|
||||
void *cb_context,
|
||||
void (*cb)(int temperature,
|
||||
void *context))
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
|
||||
|
|
@ -10378,15 +10376,15 @@ QDF_STATUS sme_get_temperature(mac_handle_t mac_handle,
|
|||
|
||||
status = sme_acquire_global_lock(&mac->sme);
|
||||
if (QDF_STATUS_SUCCESS == status) {
|
||||
if ((NULL == pCallbackfn) &&
|
||||
(NULL == mac->sme.pGetTemperatureCb)) {
|
||||
if ((!cb) &&
|
||||
(!mac->sme.temperature_cb)) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||
"Indication Call back did not registered");
|
||||
sme_release_global_lock(&mac->sme);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
} else if (NULL != pCallbackfn) {
|
||||
mac->sme.pTemperatureCbContext = tempContext;
|
||||
mac->sme.pGetTemperatureCb = pCallbackfn;
|
||||
} else if (cb) {
|
||||
mac->sme.temperature_cb_context = cb_context;
|
||||
mac->sme.temperature_cb = cb;
|
||||
}
|
||||
/* serialize the req through MC thread */
|
||||
message.bodyptr = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue