Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 906dd882 authored by Ajay Singh Parmar's avatar Ajay Singh Parmar Committed by Siddharth Zaveri
Browse files

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: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
Signed-off-by: default avatarSiddharth Zaveri <szaveri@codeaurora.org>
parent 97310ba8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.