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
f9fd83e3
Commit
f9fd83e3
authored
Jun 02, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Driver Model: More cleanup of silly scsi use of the *ATTR macros...
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
a7ba0893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c
+8
-8
No files found.
drivers/scsi/scsi_debug.c
View file @
f9fd83e3
...
...
@@ -1326,7 +1326,7 @@ static ssize_t sdebug_delay_store(struct device_driver * ddp,
return
-
EINVAL
;
}
DRIVER_ATTR
(
delay
,
S_IRUGO
|
S_IWUSR
,
sdebug_delay_show
,
sdebug_delay_store
)
sdebug_delay_store
)
;
static
ssize_t
sdebug_opts_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
...
...
@@ -1355,7 +1355,7 @@ static ssize_t sdebug_opts_store(struct device_driver * ddp,
return
count
;
}
DRIVER_ATTR
(
opts
,
S_IRUGO
|
S_IWUSR
,
sdebug_opts_show
,
sdebug_opts_store
)
sdebug_opts_store
)
;
static
ssize_t
sdebug_num_tgts_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
...
...
@@ -1373,13 +1373,13 @@ static ssize_t sdebug_num_tgts_store(struct device_driver * ddp,
return
-
EINVAL
;
}
DRIVER_ATTR
(
num_tgts
,
S_IRUGO
|
S_IWUSR
,
sdebug_num_tgts_show
,
sdebug_num_tgts_store
)
sdebug_num_tgts_store
)
;
static
ssize_t
sdebug_dev_size_mb_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
return
scnprintf
(
buf
,
PAGE_SIZE
,
"%d
\n
"
,
scsi_debug_dev_size_mb
);
}
DRIVER_ATTR
(
dev_size_mb
,
S_IRUGO
,
sdebug_dev_size_mb_show
,
NULL
)
DRIVER_ATTR
(
dev_size_mb
,
S_IRUGO
,
sdebug_dev_size_mb_show
,
NULL
)
;
static
ssize_t
sdebug_every_nth_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
...
...
@@ -1398,7 +1398,7 @@ static ssize_t sdebug_every_nth_store(struct device_driver * ddp,
return
-
EINVAL
;
}
DRIVER_ATTR
(
every_nth
,
S_IRUGO
|
S_IWUSR
,
sdebug_every_nth_show
,
sdebug_every_nth_store
)
sdebug_every_nth_store
)
;
static
ssize_t
sdebug_max_luns_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
...
...
@@ -1416,13 +1416,13 @@ static ssize_t sdebug_max_luns_store(struct device_driver * ddp,
return
-
EINVAL
;
}
DRIVER_ATTR
(
max_luns
,
S_IRUGO
|
S_IWUSR
,
sdebug_max_luns_show
,
sdebug_max_luns_store
)
sdebug_max_luns_store
)
;
static
ssize_t
sdebug_scsi_level_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
return
scnprintf
(
buf
,
PAGE_SIZE
,
"%d
\n
"
,
scsi_debug_scsi_level
);
}
DRIVER_ATTR
(
scsi_level
,
S_IRUGO
,
sdebug_scsi_level_show
,
NULL
)
DRIVER_ATTR
(
scsi_level
,
S_IRUGO
,
sdebug_scsi_level_show
,
NULL
)
;
static
ssize_t
sdebug_add_host_show
(
struct
device_driver
*
ddp
,
char
*
buf
)
{
...
...
@@ -1459,7 +1459,7 @@ static ssize_t sdebug_add_host_store(struct device_driver * ddp,
return
count
;
}
DRIVER_ATTR
(
add_host
,
S_IRUGO
|
S_IWUSR
,
sdebug_add_host_show
,
sdebug_add_host_store
)
sdebug_add_host_store
)
;
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