Lines Matching refs:rval
106 int rval; in lm3646_get_ctrl() local
111 rval = regmap_read(flash->regmap, REG_FLAG, ®_val); in lm3646_get_ctrl()
112 if (rval < 0) in lm3646_get_ctrl()
113 return rval; in lm3646_get_ctrl()
140 int rval = -EINVAL; in lm3646_set_ctrl() local
158 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_set_ctrl()
159 if (rval < 0 || ((reg_val & MASK_ENABLE) != MODE_SHDN)) in lm3646_set_ctrl()
160 return rval; in lm3646_set_ctrl()
171 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_set_ctrl()
172 if (rval < 0) in lm3646_set_ctrl()
173 return rval; in lm3646_set_ctrl()
177 return rval; in lm3646_set_ctrl()
277 int rval; in lm3646_subdev_init() local
282 rval = lm3646_init_controls(flash); in lm3646_subdev_init()
283 if (rval) in lm3646_subdev_init()
285 rval = media_entity_pads_init(&flash->subdev_led.entity, 0, NULL); in lm3646_subdev_init()
286 if (rval < 0) in lm3646_subdev_init()
289 return rval; in lm3646_subdev_init()
293 return rval; in lm3646_subdev_init()
299 int rval; in lm3646_init_device() local
302 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_init_device()
303 if (rval < 0) in lm3646_init_device()
304 return rval; in lm3646_init_device()
308 rval = lm3646_mode_ctrl(flash, V4L2_FLASH_LED_MODE_NONE); in lm3646_init_device()
309 if (rval < 0) in lm3646_init_device()
310 return rval; in lm3646_init_device()
316 rval = regmap_update_bits(flash->regmap, in lm3646_init_device()
321 if (rval < 0) in lm3646_init_device()
322 return rval; in lm3646_init_device()
328 rval = regmap_update_bits(flash->regmap, in lm3646_init_device()
332 if (rval < 0) in lm3646_init_device()
333 return rval; in lm3646_init_device()
344 int rval; in lm3646_probe() local
369 rval = lm3646_subdev_init(flash); in lm3646_probe()
370 if (rval < 0) in lm3646_probe()
371 return rval; in lm3646_probe()
373 rval = lm3646_init_device(flash); in lm3646_probe()
374 if (rval < 0) in lm3646_probe()
375 return rval; in lm3646_probe()