drivers/mag3110: use new driver params scheme
This commit is contained in:
parent
dd852a2b53
commit
2afd84f9ca
@ -42,12 +42,15 @@ extern "C" {
|
|||||||
#define MAG3110_PARAM_OFFSET { 0, 0, 0 }
|
#define MAG3110_PARAM_OFFSET { 0, 0, 0 }
|
||||||
#endif
|
#endif
|
||||||
#ifndef MAG3110_PARAMS
|
#ifndef MAG3110_PARAMS
|
||||||
#define MAG3110_PARAMS { .i2c = MAG3110_PARAM_I2C, \
|
#define MAG3110_PARAMS { .i2c = MAG3110_PARAM_I2C, \
|
||||||
.addr = MAG3110_PARAM_ADDR, \
|
.addr = MAG3110_PARAM_ADDR, \
|
||||||
.type = MAG3110_ID, \
|
.type = MAG3110_ID, \
|
||||||
.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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user