Lines Matching refs:subdev
51 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw()
90 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault()
119 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_strobe()
263 flash->subdev.ctrl_handler = &flash->ctrls; in adp1653_init_controls()
274 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_init_device()
311 ret = flash->platform_data->power(&flash->subdev, on); in __adp1653_set_power()
320 flash->platform_data->power(&flash->subdev, 0); in __adp1653_set_power()
326 adp1653_set_power(struct v4l2_subdev *subdev, int on) in adp1653_set_power() argument
328 struct adp1653_flash *flash = to_adp1653_flash(subdev); in adp1653_set_power()
382 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in adp1653_suspend() local
383 struct adp1653_flash *flash = to_adp1653_flash(subdev); in adp1653_suspend()
394 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in adp1653_resume() local
395 struct adp1653_flash *flash = to_adp1653_flash(subdev); in adp1653_resume()
428 v4l2_i2c_subdev_init(&flash->subdev, client, &adp1653_ops); in adp1653_probe()
429 flash->subdev.internal_ops = &adp1653_internal_ops; in adp1653_probe()
430 flash->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in adp1653_probe()
436 ret = media_entity_init(&flash->subdev.entity, 0, NULL, 0); in adp1653_probe()
440 flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; in adp1653_probe()
451 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in adp1653_remove() local
452 struct adp1653_flash *flash = to_adp1653_flash(subdev); in adp1653_remove()
454 v4l2_device_unregister_subdev(&flash->subdev); in adp1653_remove()
456 media_entity_cleanup(&flash->subdev.entity); in adp1653_remove()