From 2729d67be2a4ada0f10c1c954f3043f0935f8f6e Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 28 Feb 2018 16:53:35 +0100 Subject: [PATCH] drivers/veml6070: use new driver params scheme --- drivers/veml6070/include/veml6070_params.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/veml6070/include/veml6070_params.h b/drivers/veml6070/include/veml6070_params.h index b00a020436..dc2b03013b 100644 --- a/drivers/veml6070/include/veml6070_params.h +++ b/drivers/veml6070/include/veml6070_params.h @@ -38,8 +38,13 @@ extern "C" { #define VEML6070_PARAM_ITIME VEML6070_1_T #endif -#define VEML6070_PARAMS_DEFAULT { .i2c_dev = VEML6070_PARAM_I2C_DEV, \ +#ifndef VEML6070_PARAMS +#define VEML6070_PARAMS { .i2c_dev = VEML6070_PARAM_I2C_DEV, \ .itime = VEML6070_PARAM_ITIME } +#endif +#ifndef VEML6070_SAUL_INFO +#define VEML6070_SAUL_INFO { .name = "veml6070" } +#endif /**@}*/ /** @@ -47,19 +52,15 @@ extern "C" { */ static const veml6070_params_t veml6070_params[] = { -#ifdef VEML6070_PARAMS_BOARD - VEML6070_PARAMS_BOARD, -#else - VEML6070_PARAMS_DEFAULT, -#endif + VEML6070_PARAMS }; /** * @brief Configure SAUL registry entries */ -static const saul_reg_info_t veml6070_saul_reg_info[] = +static const saul_reg_info_t veml6070_saul_info[] = { - { .name = "veml6070" } + VEML6070_SAUL_INFO }; #ifdef __cplusplus