Lines Matching refs:v4l2_dev
59 #define v4l2_dev_to_radio(d) container_of(d, struct dsbr100_device, v4l2_dev)
68 struct v4l2_device v4l2_dev; member
264 v4l2_device_disconnect(&radio->v4l2_dev); in usb_dsbr100_disconnect()
266 v4l2_device_put(&radio->v4l2_dev); in usb_dsbr100_disconnect()
299 static void usb_dsbr100_release(struct v4l2_device *v4l2_dev) in usb_dsbr100_release() argument
301 struct dsbr100_device *radio = v4l2_dev_to_radio(v4l2_dev); in usb_dsbr100_release()
304 v4l2_device_unregister(&radio->v4l2_dev); in usb_dsbr100_release()
338 struct v4l2_device *v4l2_dev; in usb_dsbr100_probe() local
353 v4l2_dev = &radio->v4l2_dev; in usb_dsbr100_probe()
354 v4l2_dev->release = usb_dsbr100_release; in usb_dsbr100_probe()
356 retval = v4l2_device_register(&intf->dev, v4l2_dev); in usb_dsbr100_probe()
358 v4l2_err(v4l2_dev, "couldn't register v4l2_device\n"); in usb_dsbr100_probe()
367 v4l2_err(v4l2_dev, "couldn't register control\n"); in usb_dsbr100_probe()
371 strscpy(radio->videodev.name, v4l2_dev->name, in usb_dsbr100_probe()
373 radio->videodev.v4l2_dev = v4l2_dev; in usb_dsbr100_probe()
391 v4l2_err(v4l2_dev, "couldn't register video device\n"); in usb_dsbr100_probe()
395 v4l2_device_unregister(v4l2_dev); in usb_dsbr100_probe()