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
ac3b1b9b
Commit
ac3b1b9b
authored
Nov 17, 2002
by
Art Haas
Committed by
David S. Miller
Nov 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/cdrom
parent
0b68fae1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
drivers/cdrom/mcdx.c
drivers/cdrom/mcdx.c
+8
-8
drivers/cdrom/optcd.c
drivers/cdrom/optcd.c
+1
-1
drivers/cdrom/sbpcd.c
drivers/cdrom/sbpcd.c
+14
-14
No files found.
drivers/cdrom/mcdx.c
View file @
ac3b1b9b
...
...
@@ -322,14 +322,14 @@ static struct request_queue mcdx_queue;
MODULE_PARM
(
mcdx
,
"1-4i"
);
static
struct
cdrom_device_ops
mcdx_dops
=
{
open:
mcdx_open
,
release:
mcdx_close
,
media_changed:
mcdx_media_changed
,
tray_move:
mcdx_tray_move
,
lock_door:
mcdx_lockdoor
,
audio_ioctl:
mcdx_audio_ioctl
,
capability:
CDC_OPEN_TRAY
|
CDC_LOCK
|
CDC_MEDIA_CHANGED
|
CDC_PLAY_AUDIO
|
CDC_DRIVE_STATUS
,
.
open
=
mcdx_open
,
.
release
=
mcdx_close
,
.
media_changed
=
mcdx_media_changed
,
.
tray_move
=
mcdx_tray_move
,
.
lock_door
=
mcdx_lockdoor
,
.
audio_ioctl
=
mcdx_audio_ioctl
,
.
capability
=
CDC_OPEN_TRAY
|
CDC_LOCK
|
CDC_MEDIA_CHANGED
|
CDC_PLAY_AUDIO
|
CDC_DRIVE_STATUS
,
};
/* KERNEL INTERFACE FUNCTIONS **************************************/
...
...
drivers/cdrom/optcd.c
View file @
ac3b1b9b
...
...
@@ -1076,7 +1076,7 @@ static int tries; /* ibid?? */
static
int
timeout
=
0
;
static
void
poll
(
unsigned
long
data
);
static
struct
timer_list
req_timer
=
{
function
:
poll
};
static
struct
timer_list
req_timer
=
{
.
function
=
poll
};
static
void
poll
(
unsigned
long
data
)
...
...
drivers/cdrom/sbpcd.c
View file @
ac3b1b9b
...
...
@@ -5469,22 +5469,22 @@ static void sbpcd_release(struct cdrom_device_info * cdi)
*/
static
int
sbpcd_media_changed
(
struct
cdrom_device_info
*
cdi
,
int
disc_nr
);
static
struct
cdrom_device_ops
sbpcd_dops
=
{
open:
sbpcd_open
,
release:
sbpcd_release
,
drive_status:
sbpcd_drive_status
,
media_changed:
sbpcd_media_changed
,
tray_move:
sbpcd_tray_move
,
lock_door:
sbpcd_lock_door
,
select_speed:
sbpcd_select_speed
,
get_last_session:
sbpcd_get_last_session
,
get_mcn:
sbpcd_get_mcn
,
reset:
sbpcd_reset
,
audio_ioctl:
sbpcd_audio_ioctl
,
dev_ioctl:
sbpcd_dev_ioctl
,
capability:
CDC_CLOSE_TRAY
|
CDC_OPEN_TRAY
|
CDC_LOCK
|
.
open
=
sbpcd_open
,
.
release
=
sbpcd_release
,
.
drive_status
=
sbpcd_drive_status
,
.
media_changed
=
sbpcd_media_changed
,
.
tray_move
=
sbpcd_tray_move
,
.
lock_door
=
sbpcd_lock_door
,
.
select_speed
=
sbpcd_select_speed
,
.
get_last_session
=
sbpcd_get_last_session
,
.
get_mcn
=
sbpcd_get_mcn
,
.
reset
=
sbpcd_reset
,
.
audio_ioctl
=
sbpcd_audio_ioctl
,
.
dev_ioctl
=
sbpcd_dev_ioctl
,
.
capability
=
CDC_CLOSE_TRAY
|
CDC_OPEN_TRAY
|
CDC_LOCK
|
CDC_MULTI_SESSION
|
CDC_MEDIA_CHANGED
|
CDC_MCN
|
CDC_PLAY_AUDIO
|
CDC_IOCTLS
,
n_minors:
1
,
.
n_minors
=
1
,
};
/*==========================================================================*/
...
...
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