msm: dba: define null function to register client
All clients need to call register API exposed by DBA module to check if the down stream transmitter driver is configured or not. In case DBA is not enabled, define a null register function which returns a NULL pointer to let the clients know of non availability of DBA. Change-Id: I2b6066babe5a7e464a31752720da8f299997e977 Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org> Signed-off-by: Siddharth Zaveri <szaveri@codeaurora.org>
This commit is contained in:
parent
e58bc0985b
commit
2ff2acc7cf
1 changed files with 7 additions and 0 deletions
|
@ -487,8 +487,15 @@ struct msm_dba_ops {
|
|||
* chip. If Successful, this will return a pointer that should be used as a
|
||||
* handle for all subsequent function calls.
|
||||
*/
|
||||
#ifdef CONFIG_MSM_DBA
|
||||
void *msm_dba_register_client(struct msm_dba_reg_info *info,
|
||||
struct msm_dba_ops *ops);
|
||||
#else
|
||||
static inline void *msm_dba_register_client(struct msm_dba_reg_info *info,
|
||||
struct msm_dba_ops *ops) {
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* msm_dba_deregister_client() - Allows client to de-register with the driver.
|
||||
|
|
Loading…
Add table
Reference in a new issue