diff options
author | Sumatheendra Raghavendrachar <sumath@codeaurora.org> | 2018-08-06 19:22:44 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-08-07 03:22:53 -0700 |
commit | b9fda6f636b18ab18681bb2288a2df9192db2ef8 (patch) | |
tree | b354ae7e270bc309eedf7b5ecfde5309f34dd4ce /halimpl/utils/phNxpConfig.cpp | |
parent | ec320594f7a675371f5a5969e59cdfd2b46bbeaa (diff) |
NFC: Fix compile issues
Modified Android.bp to build copy of hal, retained Qcom authored
chipid based changes, added latest enums in halnxp_nfc header
file and fixes done to resolve compile issue.
Change-Id: I8732e0f78c8e055eafb71d192fe8d159e527b018
Diffstat (limited to 'halimpl/utils/phNxpConfig.cpp')
-rw-r--r-- | halimpl/utils/phNxpConfig.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/halimpl/utils/phNxpConfig.cpp b/halimpl/utils/phNxpConfig.cpp index a8be099..2677c04 100644 --- a/halimpl/utils/phNxpConfig.cpp +++ b/halimpl/utils/phNxpConfig.cpp @@ -57,6 +57,7 @@ #include <stdlib.h> #include <phNxpLog.h> +#include <cutils/properties.h> #include "sparse_crc32.h" #if GENERIC_TARGET @@ -174,6 +175,7 @@ using namespace ::std; namespace nxp { void readOptionalConfig(const char* optional); +void findConfigFilePathFromTransportConfigPaths(const string& configName, string& filePath); class CNfcParam : public string { public: @@ -780,7 +782,7 @@ bool CNfcConfig::readConfig(const char* name, bool bResetContent) { ** Returns: none ** *******************************************************************************/ -CNfcConfig::CNfcConfig() : mValidFile(true), state(0) {} +CNfcConfig::CNfcConfig() : mValidFile(true), mDynamConfig(true), state(0) {} /******************************************************************************* ** @@ -874,14 +876,8 @@ CNfcConfig& CNfcConfig::GetInstance() { readOptionalConfig("brcm"); theInstance.readNxpTransitConfig("nxpTransit"); -#endif - } - findConfigFilePathFromTransportConfigPaths(config_name, strPath); - theInstance.readConfig(strPath.c_str(), true); -#if (NXP_EXTNS == TRUE) - readOptionalConfig("brcm"); - theInstance.readNxpTransitConfig(transit_config_path); - theInstance.readNxpRFConfig(nxp_rf_config_path); + theInstance.readNxpTransitConfig(transit_config_path); + theInstance.readNxpRFConfig(nxp_rf_config_path); #endif } return theInstance; |