1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16931 from janosbrodbeck/cleanup/lm75

drivers/lm75: minor cleanup
This commit is contained in:
benpicco 2021-10-02 13:35:05 +02:00 committed by GitHub
commit bcc32cdde1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,8 @@
extern "C" {
#endif
#ifndef LM75_PARAMS_I2C
#define LM75_PARAMS_I2C I2C_DEV(0) /**< I2C BUS used */
#ifndef LM75_PARAM_I2C
#define LM75_PARAM_I2C I2C_DEV(0) /**< I2C BUS used */
#endif
/** 7-bit I2C slave address: 1-0-0-1-A2-A1-A0, where
@ -145,7 +145,7 @@ extern "C" {
#define LM75_PARAMS { .res = &lm75a_properties, \
.gpio_alarm = LM75_PARAM_INT, \
.conv_rate = LM75A_CONV_RATE, \
.i2c_bus = LM75_PARAMS_I2C, \
.i2c_bus = LM75_PARAM_I2C, \
.i2c_addr = CONFIG_LM75_I2C_ADDR, \
.shutdown_mode = CONFIG_OPERATION_MODE, \
.tm_mode = CONFIG_THERMOSTAT_MODE, \
@ -158,7 +158,7 @@ extern "C" {
#define LM75_PARAMS { .res = &tmp1075_properties, \
.gpio_alarm = LM75_PARAM_INT, \
.conv_rate = TMP1075_CONV_RATE, \
.i2c_bus = LM75_PARAMS_I2C, \
.i2c_bus = LM75_PARAM_I2C, \
.i2c_addr = CONFIG_LM75_I2C_ADDR, \
.shutdown_mode = CONFIG_OPERATION_MODE, \
.tm_mode = CONFIG_THERMOSTAT_MODE, \