drivers/mag3110: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 18:01:58 +01:00 committed by dylad
parent dd852a2b53
commit 2afd84f9ca

View File

@ -48,6 +48,9 @@ extern "C" {
.dros = MAG3110_DROS_DEFAULT, \ .dros = MAG3110_DROS_DEFAULT, \
.offset = MAG3110_PARAM_OFFSET } .offset = MAG3110_PARAM_OFFSET }
#endif #endif
#ifndef MAG3110_SAUL_INFO
#define MAG3110_SAUL_INFO { .name = "mag3110" }
#endif
/**@}*/ /**@}*/
/** /**
@ -63,9 +66,7 @@ static const mag3110_params_t mag3110_params[] =
*/ */
static const saul_reg_info_t mag3110_saul_info[] = static const saul_reg_info_t mag3110_saul_info[] =
{ {
{ MAG3110_SAUL_INFO
.name = "mag3110"
}
}; };
#ifdef __cplusplus #ifdef __cplusplus