From 0c8b7e4825d13f374834915f309425f7303b72cb Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 28 Feb 2018 16:52:31 +0100 Subject: [PATCH] drivers/lpd8808: use new driver params scheme --- drivers/lpd8808/include/lpd8808_params.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/lpd8808/include/lpd8808_params.h b/drivers/lpd8808/include/lpd8808_params.h index 86f3826055..28d4ce79ff 100644 --- a/drivers/lpd8808/include/lpd8808_params.h +++ b/drivers/lpd8808/include/lpd8808_params.h @@ -39,9 +39,11 @@ extern "C" { #define LPD8808_PARAM_PIN_DAT (GPIO_PIN(0, 1)) #endif -#define LPD8808_PARAMS_DEFAULT {.led_cnt = LPD8808_PARAM_LED_CNT, \ - .pin_clk = LPD8808_PARAM_PIN_CLK, \ - .pin_dat = LPD8808_PARAM_PIN_DAT } +#ifndef LPD8808_PARAMS +#define LPD8808_PARAMS { .led_cnt = LPD8808_PARAM_LED_CNT, \ + .pin_clk = LPD8808_PARAM_PIN_CLK, \ + .pin_dat = LPD8808_PARAM_PIN_DAT } +#endif /**@}*/ /** @@ -49,11 +51,7 @@ extern "C" { */ static const lpd8808_params_t lpd8808_params[] = { -#ifdef LPD8808_PARAMS_BOARD - LPD8808_PARAMS_BOARD, -#else - LPD8808_PARAMS_DEFAULT, -#endif + LPD8808_PARAMS }; #ifdef __cplusplus