Commit fc55bcb0 authored by Alexey Klimov's avatar Alexey Klimov Committed by Mauro Carvalho Chehab

V4L/DVB (10060): dsbr100: fix and add right comments

Fix and add right comments. Few empty lines removed.
Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7e1ca849
/* A driver for the D-Link DSB-R100 USB radio. The R100 plugs /* A driver for the D-Link DSB-R100 USB radio and Gemtek USB Radio 21.
into both the USB and an analog audio input, so this thing The device plugs into both the USB and an analog audio input, so this thing
only deals with initialisation and frequency setting, the only deals with initialisation and frequency setting, the
audio data has to be handled by a sound driver. audio data has to be handled by a sound driver.
...@@ -172,7 +172,6 @@ struct dsbr100_device { ...@@ -172,7 +172,6 @@ struct dsbr100_device {
int muted; int muted;
}; };
static struct usb_device_id usb_dsbr100_device_table [] = { static struct usb_device_id usb_dsbr100_device_table [] = {
{ USB_DEVICE(DSB100_VENDOR, DSB100_PRODUCT) }, { USB_DEVICE(DSB100_VENDOR, DSB100_PRODUCT) },
{ } /* Terminating entry */ { } /* Terminating entry */
...@@ -237,7 +236,6 @@ static int dsbr100_start(struct dsbr100_device *radio) ...@@ -237,7 +236,6 @@ static int dsbr100_start(struct dsbr100_device *radio)
} }
/* switch off radio */ /* switch off radio */
static int dsbr100_stop(struct dsbr100_device *radio) static int dsbr100_stop(struct dsbr100_device *radio)
{ {
...@@ -363,13 +361,14 @@ static void dsbr100_getstat(struct dsbr100_device *radio) ...@@ -363,13 +361,14 @@ static void dsbr100_getstat(struct dsbr100_device *radio)
mutex_unlock(&radio->lock); mutex_unlock(&radio->lock);
} }
/* USB subsystem interface begins here */ /* USB subsystem interface begins here */
/* handle unplugging of the device, release data structures /*
if nothing keeps us from doing it. If something is still * Handle unplugging of the device.
keeping us busy, the release callback of v4l will take care * We call video_unregister_device in any case.
of releasing it. */ * The last function called in this procedure is
* usb_dsbr100_video_device_release
*/
static void usb_dsbr100_disconnect(struct usb_interface *intf) static void usb_dsbr100_disconnect(struct usb_interface *intf)
{ {
struct dsbr100_device *radio = usb_get_intfdata(intf); struct dsbr100_device *radio = usb_get_intfdata(intf);
...@@ -640,6 +639,7 @@ static int usb_dsbr100_resume(struct usb_interface *intf) ...@@ -640,6 +639,7 @@ static int usb_dsbr100_resume(struct usb_interface *intf)
return 0; return 0;
} }
/* free data structures */
static void usb_dsbr100_video_device_release(struct video_device *videodev) static void usb_dsbr100_video_device_release(struct video_device *videodev)
{ {
struct dsbr100_device *radio = videodev_to_radio(videodev); struct dsbr100_device *radio = videodev_to_radio(videodev);
...@@ -683,8 +683,7 @@ static struct video_device dsbr100_videodev_data = { ...@@ -683,8 +683,7 @@ static struct video_device dsbr100_videodev_data = {
.release = usb_dsbr100_video_device_release, .release = usb_dsbr100_video_device_release,
}; };
/* check if the device is present and register with v4l and /* check if the device is present and register with v4l and usb if it is */
usb if it is */
static int usb_dsbr100_probe(struct usb_interface *intf, static int usb_dsbr100_probe(struct usb_interface *intf,
const struct usb_device_id *id) const struct usb_device_id *id)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment