msm: ipa: Adapt IPA driver to several DLKMs

Arrange driver to be separated into several DLKMs
per functinalities. Adapt the Makefiles,
add needed EXPORT_SYMBOLS(), and replace #ifdef X
to #if IS_ENABLED(X) to capture module state.

Change-Id: I5cc0a7c43358e3caa099cb3e9968b0837753972c
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
This commit is contained in:
Ghanim Fodi
2019-11-10 19:22:55 +02:00
parent a1df5fab7c
commit 92bb3a5b57
37 changed files with 323 additions and 282 deletions

View File

@@ -50,7 +50,7 @@ struct ecm_ipa_params {
};
#ifdef CONFIG_ECM_IPA
#if IS_ENABLED(CONFIG_ECM_IPA)
int ecm_ipa_init(struct ecm_ipa_params *params);
@@ -61,7 +61,7 @@ int ecm_ipa_disconnect(void *priv);
void ecm_ipa_cleanup(void *priv);
#else /* CONFIG_ECM_IPA*/
#else /* IS_ENABLED(CONFIG_ECM_IPA) */
static inline int ecm_ipa_init(struct ecm_ipa_params *params)
{
@@ -83,6 +83,6 @@ static inline void ecm_ipa_cleanup(void *priv)
{
}
#endif /* CONFIG_ECM_IPA*/
#endif /* IS_ENABLED(CONFIG_ECM_IPA) */
#endif /* _ECM_IPA_H_ */