From 9c052a62886f4b6acd3430674367521700c68b67 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Tue, 21 Apr 2020 17:31:22 +0530 Subject: [PATCH] drivers/mag3110 : Add CONFIG_ Add CONFIG_ Prefix for MAG3110_I2C_ADDRESS --- drivers/include/mag3110.h | 4 ++-- drivers/mag3110/include/mag3110_params.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/include/mag3110.h b/drivers/include/mag3110.h index 034f629089..f41aa64c0f 100644 --- a/drivers/include/mag3110.h +++ b/drivers/include/mag3110.h @@ -65,8 +65,8 @@ enum { * The address depends on part number of MAG3110. * For more information on SerialBus Address, refer Table 1 in Technical datasheet(MAG3110). */ -#ifndef MAG3110_I2C_ADDRESS -#define MAG3110_I2C_ADDRESS 0x0E +#ifndef CONFIG_MAG3110_I2C_ADDRESS +#define CONFIG_MAG3110_I2C_ADDRESS 0x0E #endif /** @} */ diff --git a/drivers/mag3110/include/mag3110_params.h b/drivers/mag3110/include/mag3110_params.h index a55bd6ff82..b5539b053d 100644 --- a/drivers/mag3110/include/mag3110_params.h +++ b/drivers/mag3110/include/mag3110_params.h @@ -36,7 +36,7 @@ extern "C" { #define MAG3110_PARAM_I2C (I2C_DEV(0)) #endif #ifndef MAG3110_PARAM_ADDR -#define MAG3110_PARAM_ADDR (MAG3110_I2C_ADDRESS) +#define MAG3110_PARAM_ADDR (CONFIG_MAG3110_I2C_ADDRESS) #endif #ifndef MAG3110_PARAM_OFFSET #define MAG3110_PARAM_OFFSET { 0, 0, 0 }