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
8403fb48
Commit
8403fb48
authored
Aug 14, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI debug driver] change DRIVER_ATTR usage
parent
c6efcb49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c
+3
-3
No files found.
drivers/scsi/scsi_debug.c
View file @
8403fb48
...
@@ -1279,7 +1279,7 @@ static ssize_t sdebug_delay_write(struct device_driver * ddp,
...
@@ -1279,7 +1279,7 @@ static ssize_t sdebug_delay_write(struct device_driver * ddp,
return
-
EINVAL
;
return
-
EINVAL
;
}
}
DRIVER_ATTR
(
delay
,
"delay"
,
S_IRUGO
|
S_IWUSR
,
sdebug_delay_read
,
DRIVER_ATTR
(
delay
,
S_IRUGO
|
S_IWUSR
,
sdebug_delay_read
,
sdebug_delay_write
)
sdebug_delay_write
)
static
ssize_t
sdebug_opts_read
(
struct
device_driver
*
ddp
,
char
*
buf
,
static
ssize_t
sdebug_opts_read
(
struct
device_driver
*
ddp
,
char
*
buf
,
...
@@ -1311,7 +1311,7 @@ static ssize_t sdebug_opts_write(struct device_driver * ddp,
...
@@ -1311,7 +1311,7 @@ static ssize_t sdebug_opts_write(struct device_driver * ddp,
return
count
;
return
count
;
}
}
DRIVER_ATTR
(
opts
,
"opts"
,
S_IRUGO
|
S_IWUSR
,
sdebug_opts_read
,
DRIVER_ATTR
(
opts
,
S_IRUGO
|
S_IWUSR
,
sdebug_opts_read
,
sdebug_opts_write
)
sdebug_opts_write
)
static
ssize_t
sdebug_num_devs_read
(
struct
device_driver
*
ddp
,
char
*
buf
,
static
ssize_t
sdebug_num_devs_read
(
struct
device_driver
*
ddp
,
char
*
buf
,
...
@@ -1320,7 +1320,7 @@ static ssize_t sdebug_num_devs_read(struct device_driver * ddp, char * buf,
...
@@ -1320,7 +1320,7 @@ static ssize_t sdebug_num_devs_read(struct device_driver * ddp, char * buf,
return
off
?
0
:
snprintf
(
buf
,
count
,
"%d
\n
"
,
scsi_debug_num_devs
);
return
off
?
0
:
snprintf
(
buf
,
count
,
"%d
\n
"
,
scsi_debug_num_devs
);
}
}
DRIVER_ATTR
(
num_devs
,
"num_devs"
,
S_IRUGO
,
sdebug_num_devs_read
,
NULL
)
DRIVER_ATTR
(
num_devs
,
S_IRUGO
,
sdebug_num_devs_read
,
NULL
)
static
void
do_create_driverfs_files
()
static
void
do_create_driverfs_files
()
{
{
...
...
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