Merge pull request #16931 from janosbrodbeck/cleanup/lm75
drivers/lm75: minor cleanup
This commit is contained in:
commit
bcc32cdde1
@ -31,8 +31,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LM75_PARAMS_I2C
|
#ifndef LM75_PARAM_I2C
|
||||||
#define LM75_PARAMS_I2C I2C_DEV(0) /**< I2C BUS used */
|
#define LM75_PARAM_I2C I2C_DEV(0) /**< I2C BUS used */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** 7-bit I2C slave address: 1-0-0-1-A2-A1-A0, where
|
/** 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, \
|
#define LM75_PARAMS { .res = &lm75a_properties, \
|
||||||
.gpio_alarm = LM75_PARAM_INT, \
|
.gpio_alarm = LM75_PARAM_INT, \
|
||||||
.conv_rate = LM75A_CONV_RATE, \
|
.conv_rate = LM75A_CONV_RATE, \
|
||||||
.i2c_bus = LM75_PARAMS_I2C, \
|
.i2c_bus = LM75_PARAM_I2C, \
|
||||||
.i2c_addr = CONFIG_LM75_I2C_ADDR, \
|
.i2c_addr = CONFIG_LM75_I2C_ADDR, \
|
||||||
.shutdown_mode = CONFIG_OPERATION_MODE, \
|
.shutdown_mode = CONFIG_OPERATION_MODE, \
|
||||||
.tm_mode = CONFIG_THERMOSTAT_MODE, \
|
.tm_mode = CONFIG_THERMOSTAT_MODE, \
|
||||||
@ -158,7 +158,7 @@ extern "C" {
|
|||||||
#define LM75_PARAMS { .res = &tmp1075_properties, \
|
#define LM75_PARAMS { .res = &tmp1075_properties, \
|
||||||
.gpio_alarm = LM75_PARAM_INT, \
|
.gpio_alarm = LM75_PARAM_INT, \
|
||||||
.conv_rate = TMP1075_CONV_RATE, \
|
.conv_rate = TMP1075_CONV_RATE, \
|
||||||
.i2c_bus = LM75_PARAMS_I2C, \
|
.i2c_bus = LM75_PARAM_I2C, \
|
||||||
.i2c_addr = CONFIG_LM75_I2C_ADDR, \
|
.i2c_addr = CONFIG_LM75_I2C_ADDR, \
|
||||||
.shutdown_mode = CONFIG_OPERATION_MODE, \
|
.shutdown_mode = CONFIG_OPERATION_MODE, \
|
||||||
.tm_mode = CONFIG_THERMOSTAT_MODE, \
|
.tm_mode = CONFIG_THERMOSTAT_MODE, \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user