Lines Matching refs:retval
43 int retval; in si7006_get_humidity() local
46 retval = i2c_burst_read_dt(&config->i2c, SI7006_MEAS_REL_HUMIDITY_MASTER_MODE, in si7006_get_humidity()
49 if (retval == 0) { in si7006_get_humidity()
52 LOG_ERR("read register err: %d", retval); in si7006_get_humidity()
55 return retval; in si7006_get_humidity()
72 int retval; in si7006_get_temperature() local
74 retval = i2c_burst_read_dt(&config->i2c, config->read_temp_cmd, in si7006_get_temperature()
77 if (retval == 0) { in si7006_get_temperature()
80 LOG_ERR("read register err: %d", retval); in si7006_get_temperature()
83 return retval; in si7006_get_temperature()
94 int retval; in si7006_sample_fetch() local
96 retval = si7006_get_humidity(dev); in si7006_sample_fetch()
97 if (retval == 0) { in si7006_sample_fetch()
98 retval = si7006_get_temperature(dev); in si7006_sample_fetch()
101 return retval; in si7006_sample_fetch()