Commit dc223510 authored by Art Haas's avatar Art Haas Committed by Andy Grover

[PATCH] C99 designated initializer for drivers/usb/media/vicam.c

parent baf8febe
...@@ -1199,23 +1199,23 @@ vicam_video_init(struct video_device *vdev) ...@@ -1199,23 +1199,23 @@ vicam_video_init(struct video_device *vdev)
} }
static struct file_operations vicam_fops = { static struct file_operations vicam_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = vicam_open, .open = vicam_open,
.release =vicam_close, .release = vicam_close,
.read = vicam_read, .read = vicam_read,
.mmap = vicam_mmap, .mmap = vicam_mmap,
.ioctl = vicam_ioctl, .ioctl = vicam_ioctl,
.llseek = no_llseek, .llseek = no_llseek,
}; };
static struct video_device vicam_template = { static struct video_device vicam_template = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "ViCam-based USB Camera", .name = "ViCam-based USB Camera",
.type = VID_TYPE_CAPTURE, .type = VID_TYPE_CAPTURE,
.hardware = VID_HARDWARE_VICAM, .hardware = VID_HARDWARE_VICAM,
.fops = &vicam_fops, .fops = &vicam_fops,
// .initialize = vicam_video_init, // .initialize = vicam_video_init,
.minor = -1, .minor = -1,
}; };
/* table of devices that work with this driver */ /* table of devices that work with this driver */
...@@ -1227,10 +1227,10 @@ static struct usb_device_id vicam_table[] = { ...@@ -1227,10 +1227,10 @@ static struct usb_device_id vicam_table[] = {
MODULE_DEVICE_TABLE(usb, vicam_table); MODULE_DEVICE_TABLE(usb, vicam_table);
static struct usb_driver vicam_driver = { static struct usb_driver vicam_driver = {
name:"vicam", .name = "vicam",
probe:vicam_probe, .probe = vicam_probe,
disconnect:vicam_disconnect, .disconnect = vicam_disconnect,
id_table:vicam_table .id_table = vicam_table
}; };
/** /**
......
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