drivers/tcs37727: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 17:10:31 +01:00 committed by dylad
parent 219277e884
commit a48a90f234
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,6 @@
#include <stdint.h> #include <stdint.h>
#include "saul.h"
#include "periph/i2c.h" #include "periph/i2c.h"
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -46,6 +46,9 @@ extern "C" {
.addr = TCS37727_PARAM_ADDR, \ .addr = TCS37727_PARAM_ADDR, \
.atime = TCS37727_PARAM_ATIME } .atime = TCS37727_PARAM_ATIME }
#endif #endif
#ifndef TCS37727_SAUL_INFO
#define TCS37727_SAUL_INFO { .name = "tcs37727" }
#endif
/**@}*/ /**@}*/
/** /**
@ -61,7 +64,7 @@ static const tcs37727_params_t tcs37727_params[] =
*/ */
static const saul_reg_info_t tcs37727_saul_info[] = static const saul_reg_info_t tcs37727_saul_info[] =
{ {
{ .name = "tcs37727" } TCS37727_SAUL_INFO
}; };
#ifdef __cplusplus #ifdef __cplusplus