mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Merge "qcacmn: Add htc_pm_runtime put/get apis" into wlan-cmn.driver.lnx.1.0-dev
This commit is contained in:
commit
977a611a65
2 changed files with 25 additions and 0 deletions
18
htc/htc.c
18
htc/htc.c
|
|
@ -992,3 +992,21 @@ bool htc_can_suspend_link(HTC_HANDLE htc_handle)
|
|||
|
||||
return hif_can_suspend_link(target->hif_dev);
|
||||
}
|
||||
|
||||
#ifdef FEATURE_RUNTIME_PM
|
||||
int htc_pm_runtime_get(HTC_HANDLE htc_handle)
|
||||
{
|
||||
HTC_TARGET *target = GET_HTC_TARGET_FROM_HANDLE(htc_handle);
|
||||
|
||||
HTC_INFO("%s: %pS\n", __func__, (void *)_RET_IP_);
|
||||
return hif_pm_runtime_get(target->hif_dev);
|
||||
}
|
||||
|
||||
int htc_pm_runtime_put(HTC_HANDLE htc_handle)
|
||||
{
|
||||
HTC_TARGET *target = GET_HTC_TARGET_FROM_HANDLE(htc_handle);
|
||||
|
||||
HTC_INFO("%s: %pS\n", __func__, (void *)_RET_IP_);
|
||||
return hif_pm_runtime_put(target->hif_dev);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -750,4 +750,11 @@ void htc_dump_bundle_stats(HTC_HANDLE HTCHandle);
|
|||
void htc_clear_bundle_stats(HTC_HANDLE HTCHandle);
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_RUNTIME_PM
|
||||
int htc_pm_runtime_get(HTC_HANDLE htc_handle);
|
||||
int htc_pm_runtime_put(HTC_HANDLE htc_handle);
|
||||
#else
|
||||
static inline int htc_pm_runtime_get(HTC_HANDLE htc_handle) { return 0; }
|
||||
static inline int htc_pm_runtime_put(HTC_HANDLE htc_handle) { return 0; }
|
||||
#endif
|
||||
#endif /* _HTC_API_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue