Searched refs:dev_vcm (Results 1 – 2 of 2) sorted by relevance
119 struct ak7375_device *dev_vcm = to_ak7375_vcm(ctrl); in ak7375_set_ctrl() local120 const struct ak73xx_chipdef *cdef = dev_vcm->cdef; in ak7375_set_ctrl()123 return ak7375_i2c_write(dev_vcm, cdef->reg_position, in ak7375_set_ctrl()159 static int ak7375_init_controls(struct ak7375_device *dev_vcm) in ak7375_init_controls() argument161 struct v4l2_ctrl_handler *hdl = &dev_vcm->ctrls_vcm; in ak7375_init_controls()163 const struct ak73xx_chipdef *cdef = dev_vcm->cdef; in ak7375_init_controls()167 dev_vcm->focus = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FOCUS_ABSOLUTE, in ak7375_init_controls()171 dev_err(dev_vcm->sd.dev, "%s fail error: 0x%x\n", in ak7375_init_controls()173 dev_vcm->sd.ctrl_handler = hdl; in ak7375_init_controls()
114 struct dw9807_device *dev_vcm = container_of(ctrl->handler, in dw9807_set_ctrl() local118 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); in dw9807_set_ctrl()120 dev_vcm->current_val = ctrl->val; in dw9807_set_ctrl()157 static int dw9807_init_controls(struct dw9807_device *dev_vcm) in dw9807_init_controls() argument159 struct v4l2_ctrl_handler *hdl = &dev_vcm->ctrls_vcm; in dw9807_init_controls()161 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); in dw9807_init_controls()168 dev_vcm->sd.ctrl_handler = hdl; in dw9807_init_controls()