drivers/lpsxxx : Add CONFIG_

Add CONFIG_ prefix to LPSXXX_DEFAULT_ADDRESS
This commit is contained in:
Akshai M 2020-05-01 11:57:43 +05:30
parent d03884d7b7
commit db7ca7eed9
2 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@ extern "C" {
* pad is connected to power supply, I2C address is 0x5C. * pad is connected to power supply, I2C address is 0x5C.
* Refer to 'I2C Operation' section on the datasheet * Refer to 'I2C Operation' section on the datasheet
*/ */
#ifndef LPSXXX_DEFAULT_ADDRESS #ifndef CONFIG_LPSXXX_DEFAULT_ADDRESS
#define LPSXXX_DEFAULT_ADDRESS (0x5d) #define CONFIG_LPSXXX_DEFAULT_ADDRESS (0x5d)
#endif #endif
/** @} */ /** @} */

View File

@ -37,7 +37,7 @@ extern "C" {
#define LPSXXX_PARAM_I2C I2C_DEV(0) #define LPSXXX_PARAM_I2C I2C_DEV(0)
#endif #endif
#ifndef LPSXXX_PARAM_ADDR #ifndef LPSXXX_PARAM_ADDR
#define LPSXXX_PARAM_ADDR (LPSXXX_DEFAULT_ADDRESS) #define LPSXXX_PARAM_ADDR (CONFIG_LPSXXX_DEFAULT_ADDRESS)
#endif #endif
#ifndef LPSXXX_PARAM_RATE #ifndef LPSXXX_PARAM_RATE
#define LPSXXX_PARAM_RATE (LPSXXX_DEFAULT_RATE) #define LPSXXX_PARAM_RATE (LPSXXX_DEFAULT_RATE)