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
nexedi
linux
Commits
c9acf903
Commit
c9acf903
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch pcd
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a8cdc308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
drivers/block/paride/pcd.c
drivers/block/paride/pcd.c
+12
-13
No files found.
drivers/block/paride/pcd.c
View file @
c9acf903
...
...
@@ -223,25 +223,24 @@ static int pcd_warned; /* Have we logged a phase warning ? */
/* kernel glue structures */
static
int
pcd_block_open
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
pcd_block_open
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
struct
pcd_unit
*
cd
=
inode
->
i_
bdev
->
bd_disk
->
private_data
;
return
cdrom_open
(
&
cd
->
info
,
inode
->
i_bdev
,
file
->
f_
mode
);
struct
pcd_unit
*
cd
=
bdev
->
bd_disk
->
private_data
;
return
cdrom_open
(
&
cd
->
info
,
bdev
,
mode
);
}
static
int
pcd_block_release
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
pcd_block_release
(
struct
gendisk
*
disk
,
fmode_t
mod
e
)
{
struct
pcd_unit
*
cd
=
inode
->
i_bdev
->
bd_
disk
->
private_data
;
cdrom_release
(
&
cd
->
info
,
file
?
file
->
f_mode
:
0
);
struct
pcd_unit
*
cd
=
disk
->
private_data
;
cdrom_release
(
&
cd
->
info
,
mode
);
return
0
;
}
static
int
pcd_block_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
pcd_block_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
cmd
,
unsigned
long
arg
)
{
struct
pcd_unit
*
cd
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
return
cdrom_ioctl
(
&
cd
->
info
,
inode
->
i_bdev
,
file
?
file
->
f_mode
:
0
,
cmd
,
arg
);
struct
pcd_unit
*
cd
=
bdev
->
bd_disk
->
private_data
;
return
cdrom_ioctl
(
&
cd
->
info
,
bdev
,
mode
,
cmd
,
arg
);
}
static
int
pcd_block_media_changed
(
struct
gendisk
*
disk
)
...
...
@@ -252,9 +251,9 @@ static int pcd_block_media_changed(struct gendisk *disk)
static
struct
block_device_operations
pcd_bdops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
pcd_block_open
,
.
__
release
=
pcd_block_release
,
.
__ioctl
=
pcd_block_ioctl
,
.
open
=
pcd_block_open
,
.
release
=
pcd_block_release
,
.
locked_ioctl
=
pcd_block_ioctl
,
.
media_changed
=
pcd_block_media_changed
,
};
...
...
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