diff options
| author | Ajay Singh Parmar <aparmar@codeaurora.org> | 2015-05-18 11:09:42 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:47:07 -0700 |
| commit | 2ff2acc7cfd0ed3e355181efb9f449f94b675ec8 (patch) | |
| tree | 64b1364ea9c9aa205c71a8c5d4a4d655f5ba79b6 /include | |
| parent | e58bc0985b6d7c5f4b184fed95317c195fe35b71 (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/video/msm_dba.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/video/msm_dba.h b/include/video/msm_dba.h index a0a3fdfbfcf1..7cc346ee0d33 100644 --- a/include/video/msm_dba.h +++ b/include/video/msm_dba.h @@ -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. |
