qcacmn: Add HTC Credit History Feature flag

Add compilation flag to compile out HTC credit History
feature cleanly from the cld-3.2 driver binary

Change-Id: I615f0e4d6de150924b99b3444cebf00571ddc088
CRs-Fixed: 2190546
This commit is contained in:
Rachit Kankane
2018-01-24 18:48:17 +05:30
committed by nshrivas
parent 56c28c0cd1
commit 1bc1149747
7 changed files with 230 additions and 119 deletions

View File

@@ -815,9 +815,24 @@ void htc_set_wmi_endpoint_count(HTC_HANDLE htc_handle, uint8_t wmi_ep_count);
*/
uint8_t htc_get_wmi_endpoint_count(HTC_HANDLE htc_handle);
#ifdef WMI_INTERFACE_EVENT_LOGGING
/**
* htc_print_credit_history: print HTC credit history in buffer
* @htc: HTC handle
* @count: Number of lines to be copied
* @print: Print callback to print in the buffer
* @print_priv: any data required by the print method, e.g. a file handle
*
* return: None
*/
#ifdef FEATURE_HTC_CREDIT_HISTORY
void htc_print_credit_history(HTC_HANDLE htc, uint32_t count,
qdf_abstract_print * print, void *print_priv);
#else
static inline
void htc_print_credit_history(HTC_HANDLE htc, uint32_t count,
qdf_abstract_print *print, void *print_priv)
{
print(print_priv, "HTC Credit History Feature is disabled");
}
#endif
#endif /* _HTC_API_H_ */