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
be726b4b
Commit
be726b4b
authored
Jan 22, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB storage: remove info sysfs file as it violates the sysfs 1 value per file rule.
parent
c8609416
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
drivers/usb/storage/scsiglue.c
drivers/usb/storage/scsiglue.c
+0
-39
No files found.
drivers/usb/storage/scsiglue.c
View file @
be726b4b
...
@@ -309,44 +309,6 @@ static int proc_info (struct Scsi_Host *hostptr, char *buffer, char **start, off
...
@@ -309,44 +309,6 @@ static int proc_info (struct Scsi_Host *hostptr, char *buffer, char **start, off
* Sysfs interface
* Sysfs interface
***********************************************************************/
***********************************************************************/
/* Output routine for the sysfs info file */
static
ssize_t
show_info
(
struct
device
*
dev
,
char
*
buffer
)
{
char
*
pos
=
buffer
;
const
int
length
=
PAGE_SIZE
;
struct
scsi_device
*
sdev
=
to_scsi_device
(
dev
);
struct
us_data
*
us
=
(
struct
us_data
*
)
sdev
->
host
->
hostdata
[
0
];
/* print the controller name */
SPRINTF
(
" Host scsi%d: usb-storage
\n
"
,
sdev
->
host
->
host_no
);
/* print product, vendor, and serial number strings */
SPRINTF
(
" Vendor: %s
\n
"
,
us
->
vendor
);
SPRINTF
(
" Product: %s
\n
"
,
us
->
product
);
SPRINTF
(
"Serial Number: %s
\n
"
,
us
->
serial
);
/* show the protocol and transport */
SPRINTF
(
" Protocol: %s
\n
"
,
us
->
protocol_name
);
SPRINTF
(
" Transport: %s
\n
"
,
us
->
transport_name
);
/* show the device flags */
if
(
pos
<
buffer
+
length
)
{
pos
+=
sprintf
(
pos
,
" Quirks:"
);
DO_FLAG
(
SINGLE_LUN
);
DO_FLAG
(
SCM_MULT_TARG
);
DO_FLAG
(
FIX_INQUIRY
);
DO_FLAG
(
FIX_CAPACITY
);
*
(
pos
++
)
=
'\n'
;
}
return
(
pos
-
buffer
);
}
static
DEVICE_ATTR
(
info
,
S_IRUGO
,
show_info
,
NULL
);
/* Output routine for the sysfs max_sectors file */
/* Output routine for the sysfs max_sectors file */
static
ssize_t
show_max_sectors
(
struct
device
*
dev
,
char
*
buf
)
static
ssize_t
show_max_sectors
(
struct
device
*
dev
,
char
*
buf
)
{
{
...
@@ -373,7 +335,6 @@ static DEVICE_ATTR(max_sectors, S_IRUGO | S_IWUSR, show_max_sectors,
...
@@ -373,7 +335,6 @@ static DEVICE_ATTR(max_sectors, S_IRUGO | S_IWUSR, show_max_sectors,
store_max_sectors
);
store_max_sectors
);
static
struct
device_attribute
*
sysfs_device_attr_list
[]
=
{
static
struct
device_attribute
*
sysfs_device_attr_list
[]
=
{
&
dev_attr_info
,
&
dev_attr_max_sectors
,
&
dev_attr_max_sectors
,
NULL
,
NULL
,
};
};
...
...
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