Lines Matching full:result

25 	int result;  in tmp108_reg_read()  local
27 result = i2c_burst_read_dt(&cfg->i2c_spec, reg, (uint8_t *) val, 2); in tmp108_reg_read()
29 if (result < 0) { in tmp108_reg_read()
30 return result; in tmp108_reg_read()
42 int result; in tmp108_reg_write() local
47 result = i2c_write_dt(&cfg->i2c_spec, tx_buf, sizeof(tx_buf)); in tmp108_reg_write()
49 if (result < 0) { in tmp108_reg_write()
50 return result; in tmp108_reg_write()
59 int result; in tmp108_write_config() local
61 result = tmp108_reg_read(dev, TI_TMP108_REG_CONF, &config); in tmp108_write_config()
63 if (result < 0) { in tmp108_write_config()
64 return result; in tmp108_write_config()
70 result = tmp108_reg_write(dev, TI_TMP108_REG_CONF, config); in tmp108_write_config()
72 if (result < 0) { in tmp108_write_config()
73 return result; in tmp108_write_config()
82 int result; in ti_tmp108_read_temp() local
90 result = tmp108_reg_read(dev, TI_TMP108_REG_TEMP, &drv_data->sample); in ti_tmp108_read_temp()
92 if (result < 0) { in ti_tmp108_read_temp()
93 return result; in ti_tmp108_read_temp()
103 int result; in tmp108_sample_fetch() local
114 result = tmp108_write_config(dev, in tmp108_sample_fetch()
118 if (result < 0) { in tmp108_sample_fetch()
119 return result; in tmp108_sample_fetch()
125 result = k_work_schedule(&drv_data->scheduled_work, in tmp108_sample_fetch()
128 if (result < 0) { in tmp108_sample_fetch()
129 return result; in tmp108_sample_fetch()
135 result = ti_tmp108_read_temp(dev); in tmp108_sample_fetch()
137 if (result < 0) { in tmp108_sample_fetch()
138 return result; in tmp108_sample_fetch()
167 int result; in tmp108_attr_get() local
176 result = tmp108_reg_read(dev, in tmp108_attr_get()
186 return result; in tmp108_attr_get()
197 int result = 0; in tmp108_attr_set() local
220 result = tmp108_write_config(dev, in tmp108_attr_set()
233 result = tmp108_write_config(dev, in tmp108_attr_set()
241 result = tmp108_reg_write(dev, in tmp108_attr_set()
249 result = tmp108_reg_write(dev, in tmp108_attr_set()
264 result = tmp108_write_config(dev, in tmp108_attr_set()
270 result = tmp108_write_config(dev, in tmp108_attr_set()
277 result = tmp108_write_config(dev, in tmp108_attr_set()
284 result = tmp108_write_config(dev, in tmp108_attr_set()
296 result = tmp108_write_config(dev, in tmp108_attr_set()
305 if (result < 0) { in tmp108_attr_set()
306 return result; in tmp108_attr_set()
326 int result; in setup_interrupts() local
334 result = gpio_pin_configure_dt(alert_gpio, GPIO_INPUT); in setup_interrupts()
336 if (result < 0) { in setup_interrupts()
337 return result; in setup_interrupts()
344 result = gpio_add_callback(alert_gpio->port, in setup_interrupts()
347 if (result < 0) { in setup_interrupts()
348 return result; in setup_interrupts()
351 result = gpio_pin_interrupt_configure_dt(alert_gpio, in setup_interrupts()
354 if (result < 0) { in setup_interrupts()
355 return result; in setup_interrupts()
366 int result = 0; in tmp108_init() local
379 result = setup_interrupts(dev); in tmp108_init()
381 if (result < 0) { in tmp108_init()
382 return result; in tmp108_init()
386 result = tmp108_write_config(dev, in tmp108_init()
389 return result; in tmp108_init()