Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dc223510
Commit
dc223510
authored
Nov 10, 2002
by
Art Haas
Committed by
Andy Grover
Nov 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 designated initializer for drivers/usb/media/vicam.c
parent
baf8febe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
drivers/usb/media/vicam.c
drivers/usb/media/vicam.c
+18
-18
No files found.
drivers/usb/media/vicam.c
View file @
dc223510
...
...
@@ -1199,23 +1199,23 @@ vicam_video_init(struct video_device *vdev)
}
static
struct
file_operations
vicam_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
vicam_open
,
.
release
=
vicam_close
,
.
read
=
vicam_read
,
.
mmap
=
vicam_mmap
,
.
ioctl
=
vicam_ioctl
,
.
llseek
=
no_llseek
,
.
owner
=
THIS_MODULE
,
.
open
=
vicam_open
,
.
release
=
vicam_close
,
.
read
=
vicam_read
,
.
mmap
=
vicam_mmap
,
.
ioctl
=
vicam_ioctl
,
.
llseek
=
no_llseek
,
};
static
struct
video_device
vicam_template
=
{
.
owner
=
THIS_MODULE
,
.
name
=
"ViCam-based USB Camera"
,
.
type
=
VID_TYPE_CAPTURE
,
.
hardware
=
VID_HARDWARE_VICAM
,
.
fops
=
&
vicam_fops
,
// .initialize = vicam_video_init,
.
minor
=
-
1
,
.
owner
=
THIS_MODULE
,
.
name
=
"ViCam-based USB Camera"
,
.
type
=
VID_TYPE_CAPTURE
,
.
hardware
=
VID_HARDWARE_VICAM
,
.
fops
=
&
vicam_fops
,
// .initialize
= vicam_video_init,
.
minor
=
-
1
,
};
/* table of devices that work with this driver */
...
...
@@ -1227,10 +1227,10 @@ static struct usb_device_id vicam_table[] = {
MODULE_DEVICE_TABLE
(
usb
,
vicam_table
);
static
struct
usb_driver
vicam_driver
=
{
name:
"vicam"
,
probe:
vicam_probe
,
disconnect:
vicam_disconnect
,
id_table:
vicam_table
.
name
=
"vicam"
,
.
probe
=
vicam_probe
,
.
disconnect
=
vicam_disconnect
,
.
id_table
=
vicam_table
};
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment