diff --git a/drivers/bmp180/include/bmp180_params.h b/drivers/bmp180/include/bmp180_params.h index 24a9222bf7eaea610e36988f829d17b2ddb5368d..b0a5db4bd15fef8ebc44b2bd4f3c30ecbeaeaca1 100644 --- a/drivers/bmp180/include/bmp180_params.h +++ b/drivers/bmp180/include/bmp180_params.h @@ -64,12 +64,9 @@ static const bmp180_params_t bmp180_params[] = /** * @brief Configure SAUL registry entries */ -static const saul_reg_info_t bmp180_saul_reg_info[][2] = +static const saul_reg_info_t bmp180_saul_reg_info[] = { - { - { .name = "bmp180-temp" }, - { .name = "bmp180-press" } - } + { .name = "bmp180" } }; #ifdef __cplusplus diff --git a/drivers/bmx280/include/bmx280_params.h b/drivers/bmx280/include/bmx280_params.h index 56d469513176c081aed47a4eeb3951709b0ef1bb..567ac83392c9fe23f8da6a58c17a0dffba8fe371 100644 --- a/drivers/bmx280/include/bmx280_params.h +++ b/drivers/bmx280/include/bmx280_params.h @@ -77,19 +77,13 @@ static const bmx280_params_t bmx280_params[] = * for each device. Please be awar that the indexes are used in * auto_init_bmx280, so make sure the indexes match. */ -#if defined(MODULE_BME280) -static const saul_reg_info_t bmx280_saul_reg_info[BMX280_NUMOF][3] = -#else -static const saul_reg_info_t bmx280_saul_reg_info[BMX280_NUMOF][2] = -#endif +static const saul_reg_info_t bmx280_saul_reg_info[BMX280_NUMOF] = { - { - { .name = "bmx280-temp" }, - { .name = "bmx280-press" }, #if defined(MODULE_BME280) - { .name = "bme280-humidity" }, + { .name = "bme280" } +#else + { .name = "bmp280" } #endif - }, }; #ifdef __cplusplus diff --git a/drivers/si70xx/include/si70xx_params.h b/drivers/si70xx/include/si70xx_params.h index 2d5f55940bc1825740f9f683175ac209a2ba98fd..9c561077dca8179969bf941c29045d4775933acb 100644 --- a/drivers/si70xx/include/si70xx_params.h +++ b/drivers/si70xx/include/si70xx_params.h @@ -59,12 +59,9 @@ static const si70xx_params_t si70xx_params[] = /** * @brief Configure SAUL registry entries */ -static const saul_reg_info_t si70xx_saul_reg_info[][2] = +static const saul_reg_info_t si70xx_saul_reg_info[] = { - { - { .name = "si70xx-temp" }, - { .name = "si70xx-hum" } - } + { .name = "si70xx" } }; #ifdef __cplusplus diff --git a/drivers/tsl2561/include/tsl2561_params.h b/drivers/tsl2561/include/tsl2561_params.h index 2bdf8717c7e0b5b40fafc216861605c3ca1f50a8..2aaddf48973e040cfe7262d3db40009370ffd4ff 100644 --- a/drivers/tsl2561/include/tsl2561_params.h +++ b/drivers/tsl2561/include/tsl2561_params.h @@ -66,9 +66,7 @@ static const tsl2561_params_t tsl2561_params[] = */ saul_reg_info_t tsl2561_saul_reg_info[] = { - { - .name= "tsl2561-illuminance" - } + { .name= "tsl2561" } }; #ifdef __cplusplus diff --git a/drivers/veml6070/include/veml6070_params.h b/drivers/veml6070/include/veml6070_params.h index ef96b6d1b421315528202e4b49d97aae9abd5d87..4633f465253f0507d6015b2c70684b6aba6d292c 100644 --- a/drivers/veml6070/include/veml6070_params.h +++ b/drivers/veml6070/include/veml6070_params.h @@ -59,9 +59,7 @@ static const veml6070_params_t veml6070_params[] = */ static const saul_reg_info_t veml6070_saul_reg_info[] = { - { - .name = "veml6070-uv" - } + { .name = "veml6070" } }; #ifdef __cplusplus diff --git a/sys/auto_init/saul/auto_init_bmp180.c b/sys/auto_init/saul/auto_init_bmp180.c index fcbe569a3e0b028a20be087a90cb1f73390bfce7..fe64ac0932a9b09a8ce9c20aa172f17ce8647e2d 100644 --- a/sys/auto_init/saul/auto_init_bmp180.c +++ b/sys/auto_init/saul/auto_init_bmp180.c @@ -61,12 +61,12 @@ void auto_init_bmp180(void) /* temperature */ saul_entries[(i * 2)].dev = &(bmp180_devs[i]); - saul_entries[(i * 2)].name = bmp180_saul_reg_info[i][0].name; + saul_entries[(i * 2)].name = bmp180_saul_reg_info[i].name; saul_entries[(i * 2)].driver = &bmp180_temperature_saul_driver; /* atmospheric pressure */ saul_entries[(i * 2) + 1].dev = &(bmp180_devs[i]); - saul_entries[(i * 2) + 1].name = bmp180_saul_reg_info[i][1].name; + saul_entries[(i * 2) + 1].name = bmp180_saul_reg_info[i].name; saul_entries[(i * 2) + 1].driver = &bmp180_pressure_saul_driver; /* register to saul */ diff --git a/sys/auto_init/saul/auto_init_bmx280.c b/sys/auto_init/saul/auto_init_bmx280.c index b3b8275907c69e4fa5e4449d20569dae5261c176..3bd0672486aad2aee93a2218a271f863c4f112ac 100644 --- a/sys/auto_init/saul/auto_init_bmx280.c +++ b/sys/auto_init/saul/auto_init_bmx280.c @@ -67,14 +67,14 @@ void auto_init_bmx280(void) /* temperature */ saul_entries[se_ix].dev = &bmx280_devs[i]; - saul_entries[se_ix].name = bmx280_saul_reg_info[i][0].name; + saul_entries[se_ix].name = bmx280_saul_reg_info[i].name; saul_entries[se_ix].driver = &bmx280_temperature_saul_driver; saul_reg_add(&saul_entries[se_ix]); se_ix++; /* pressure */ saul_entries[se_ix].dev = &bmx280_devs[i]; - saul_entries[se_ix].name = bmx280_saul_reg_info[i][1].name; + saul_entries[se_ix].name = bmx280_saul_reg_info[i].name; saul_entries[se_ix].driver = &bmx280_pressure_saul_driver; saul_reg_add(&saul_entries[se_ix]); se_ix++; @@ -82,7 +82,7 @@ void auto_init_bmx280(void) #if defined(MODULE_BME280) /* relative humidity */ saul_entries[se_ix].dev = &bmx280_devs[i]; - saul_entries[se_ix].name = bmx280_saul_reg_info[i][2].name; + saul_entries[se_ix].name = bmx280_saul_reg_info[i].name; saul_entries[se_ix].driver = &bme280_relative_humidity_saul_driver; saul_reg_add(&saul_entries[se_ix]); se_ix++; diff --git a/sys/auto_init/saul/auto_init_si70xx.c b/sys/auto_init/saul/auto_init_si70xx.c index 061ef71d852fa6dfc8457ddfd35a75ea1ee22013..4f0a0f6793872a27ade26598f5004cb907ebd7bd 100644 --- a/sys/auto_init/saul/auto_init_si70xx.c +++ b/sys/auto_init/saul/auto_init_si70xx.c @@ -63,12 +63,12 @@ void auto_init_si70xx(void) /* temperature */ saul_entries[i * 2].dev = &si70xx_devs[i]; - saul_entries[i * 2].name = si70xx_saul_reg_info[i][0].name; + saul_entries[i * 2].name = si70xx_saul_reg_info[i].name; saul_entries[i * 2].driver = &si70xx_temperature_saul_driver; /* relative humidity */ saul_entries[(i * 2) + 1].dev = &si70xx_devs[i]; - saul_entries[(i * 2) + 1].name = si70xx_saul_reg_info[i][1].name; + saul_entries[(i * 2) + 1].name = si70xx_saul_reg_info[i].name; saul_entries[(i * 2) + 1].driver = \ &si70xx_relative_humidity_saul_driver;