sensors: sx9500: varables undeclared when in debug mode
Change-Id: I1625fffbe4c1d24b7976fe5b82dafc29e8ec8350 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
2c04055970
commit
a53bc0eef0
2 changed files with 4 additions and 4 deletions
|
@ -117,12 +117,12 @@ int sx9500_init(struct device *dev)
|
|||
data->i2c_slave_addr = CONFIG_SX9500_I2C_ADDR;
|
||||
|
||||
if (sx9500_init_chip(dev) < 0) {
|
||||
SYS_LOG_DBG("sx9500: failed to initialize chip err %d", ret);
|
||||
SYS_LOG_DBG("sx9500: failed to initialize chip");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (sx9500_setup_interrupt(dev) < 0) {
|
||||
SYS_LOG_DBG("sx9500: failed to setup interrupt err %d", ret);
|
||||
SYS_LOG_DBG("sx9500: failed to setup interrupt");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ static void sx9500_thread_main(int arg1, int unused)
|
|||
|
||||
if (i2c_reg_read_byte(data->i2c_master, data->i2c_slave_addr,
|
||||
SX9500_REG_IRQ_SRC, ®_val) < 0) {
|
||||
SYS_LOG_DBG("sx9500: error %d reading IRQ source register", ret);
|
||||
SYS_LOG_DBG("sx9500: error reading IRQ source register");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ static void sx9500_gpio_thread_cb(void *arg)
|
|||
|
||||
if (i2c_reg_read_byte(data->i2c_master, data->i2c_slave_addr,
|
||||
SX9500_REG_IRQ_SRC, ®_val) < 0) {
|
||||
SYS_LOG_DBG("sx9500: error %d reading IRQ source register", ret);
|
||||
SYS_LOG_DBG("sx9500: error reading IRQ source register");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue