Lines Matching refs:sgm3784_i2c_write
93 static int sgm3784_i2c_write(struct sgm3784_flash *flash, u8 reg, u8 val) in sgm3784_i2c_write() function
137 ret = sgm3784_i2c_write(flash, SGM3784_REG_ENABLE, val); in sgm3784_led_on()
173 return sgm3784_i2c_write(flash, 0x02, val | (ret & 0xf0)); in sgm3784_set_timeout()
187 return sgm3784_i2c_write(flash, reg, val); in sgm3784_torch_brt()
201 return sgm3784_i2c_write(flash, reg, val); in sgm3784_flash_brt()
225 ret = sgm3784_i2c_write(flash, 0x01, 0xfb); in sgm3784_set_mode()
226 ret |= sgm3784_i2c_write(flash, 0x02, val | 0xc0); in sgm3784_set_mode()
227 ret |= sgm3784_i2c_write(flash, 0x03, 0x48); in sgm3784_set_mode()
235 ret = sgm3784_i2c_write(flash, 0x01, 0xf8); in sgm3784_set_mode()
236 ret |= sgm3784_i2c_write(flash, 0x02, val | 0xf0); in sgm3784_set_mode()
239 ret = sgm3784_i2c_write(flash, 0x01, 0xfa); in sgm3784_set_mode()
240 ret |= sgm3784_i2c_write(flash, 0x02, val | 0xc0); in sgm3784_set_mode()
242 ret |= sgm3784_i2c_write(flash, 0x03, 0x48); in sgm3784_set_mode()
249 ret = sgm3784_i2c_write(flash, 0x01, 0xf8); in sgm3784_set_mode()