Lines Matching full:status

39 	int status;  in is31fl3216a_write_buffer()  local
41 status = i2c_write_dt(i2c, buffer, num_bytes); in is31fl3216a_write_buffer()
42 if (status < 0) { in is31fl3216a_write_buffer()
43 LOG_ERR("Could not write buffer: %i", status); in is31fl3216a_write_buffer()
44 return status; in is31fl3216a_write_buffer()
75 int status; in is31fl3216a_led_write_channels() local
97 status = is31fl3216a_write_buffer(&config->i2c, i2c_buffer, in is31fl3216a_led_write_channels()
99 if (status < 0) { in is31fl3216a_led_write_channels()
100 return status; in is31fl3216a_led_write_channels()
111 int status; in is31fl3216a_led_set_brightness() local
119 status = is31fl3216a_write_reg(&config->i2c, pwm_reg, pwm_value); in is31fl3216a_led_set_brightness()
120 if (status < 0) { in is31fl3216a_led_set_brightness()
121 return status; in is31fl3216a_led_set_brightness()
140 int status; in is31fl3216a_init_registers() local
142 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_CTL_1, 0xFF); in is31fl3216a_init_registers()
143 if (status < 0) { in is31fl3216a_init_registers()
144 return status; in is31fl3216a_init_registers()
147 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_CTL_2, 0xFF); in is31fl3216a_init_registers()
148 if (status < 0) { in is31fl3216a_init_registers()
149 return status; in is31fl3216a_init_registers()
152 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_LIGHT_EFFECT, 0x00); in is31fl3216a_init_registers()
153 if (status < 0) { in is31fl3216a_init_registers()
154 return status; in is31fl3216a_init_registers()
157 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_CHANNEL_CONFIG, in is31fl3216a_init_registers()
159 if (status < 0) { in is31fl3216a_init_registers()
160 return status; in is31fl3216a_init_registers()
163 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_GPIO_CONFIG, 0x00); in is31fl3216a_init_registers()
164 if (status < 0) { in is31fl3216a_init_registers()
165 return status; in is31fl3216a_init_registers()
168 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_OUTPUT_PORT, 0x00); in is31fl3216a_init_registers()
169 if (status < 0) { in is31fl3216a_init_registers()
170 return status; in is31fl3216a_init_registers()
173 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_INT_CONTROL, 0x00); in is31fl3216a_init_registers()
174 if (status < 0) { in is31fl3216a_init_registers()
175 return status; in is31fl3216a_init_registers()
178 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_ADC_SAMPLE_RATE, in is31fl3216a_init_registers()
180 if (status < 0) { in is31fl3216a_init_registers()
181 return status; in is31fl3216a_init_registers()
184 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_FRAME_DELAY, 0x00); in is31fl3216a_init_registers()
185 if (status < 0) { in is31fl3216a_init_registers()
186 return status; in is31fl3216a_init_registers()
189 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_FRAME_START, 0x00); in is31fl3216a_init_registers()
190 if (status < 0) { in is31fl3216a_init_registers()
191 return status; in is31fl3216a_init_registers()
197 status = is31fl3216a_write_reg(i2c, i, 0); in is31fl3216a_init_registers()
198 if (status < 0) { in is31fl3216a_init_registers()
199 return status; in is31fl3216a_init_registers()
203 status = is31fl3216a_write_reg(i2c, IS31FL3216A_REG_UPDATE, 0); in is31fl3216a_init_registers()
204 if (status < 0) { in is31fl3216a_init_registers()
205 return status; in is31fl3216a_init_registers()