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
3d61cad0
Commit
3d61cad0
authored
Aug 14, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of struct device.name from scsi core
parent
b14d0fee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
24 deletions
+0
-24
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_debug.c
+0
-2
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+0
-20
drivers/scsi/scsi_sysfs.c
drivers/scsi/scsi_sysfs.c
+0
-2
No files found.
drivers/scsi/scsi_debug.c
View file @
3d61cad0
...
...
@@ -1566,7 +1566,6 @@ device_initcall(scsi_debug_init);
module_exit
(
scsi_debug_exit
);
static
struct
device
pseudo_primary
=
{
.
name
=
"Host/Pseudo Bridge"
,
.
bus_id
=
"pseudo_0"
,
};
...
...
@@ -1630,7 +1629,6 @@ static int sdebug_add_adapter()
sdbg_host
->
dev
.
bus
=
&
pseudo_lld_bus
;
sdbg_host
->
dev
.
parent
=
&
pseudo_primary
;
sdbg_host
->
dev
.
release
=
&
sdebug_release_adapter
;
sprintf
(
sdbg_host
->
dev
.
name
,
"scsi debug adapter"
);
sprintf
(
sdbg_host
->
dev
.
bus_id
,
"adapter%d"
,
scsi_debug_add_host
);
error
=
device_register
(
&
sdbg_host
->
dev
);
...
...
drivers/scsi/scsi_scan.c
View file @
3d61cad0
...
...
@@ -447,24 +447,6 @@ static void scsi_probe_lun(struct scsi_request *sreq, char *inq_result,
return
;
}
static
void
scsi_set_name
(
struct
scsi_device
*
sdev
,
char
*
inq_result
)
{
int
i
;
char
type
[
72
];
i
=
inq_result
[
0
]
&
0x1f
;
if
(
i
<
MAX_SCSI_DEVICE_CODE
)
strcpy
(
type
,
scsi_device_types
[
i
]);
else
strcpy
(
type
,
"Unknown"
);
i
=
strlen
(
type
)
-
1
;
while
(
i
>=
0
&&
type
[
i
]
==
' '
)
type
[
i
--
]
=
'\0'
;
snprintf
(
sdev
->
sdev_gendev
.
name
,
DEVICE_NAME_SIZE
,
"SCSI %s"
,
type
);
}
/**
* scsi_add_lun - allocate and fully initialze a Scsi_Device
* @sdevscan: holds information to be stored in the new Scsi_Device
...
...
@@ -539,8 +521,6 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)
printk
(
KERN_INFO
"scsi: unknown device type %d
\n
"
,
sdev
->
type
);
}
scsi_set_name
(
sdev
,
inq_result
);
print_inquiry
(
inq_result
);
/*
...
...
drivers/scsi/scsi_sysfs.c
View file @
3d61cad0
...
...
@@ -408,8 +408,6 @@ void scsi_sysfs_init_host(struct Scsi_Host *shost)
device_initialize
(
&
shost
->
shost_gendev
);
snprintf
(
shost
->
shost_gendev
.
bus_id
,
BUS_ID_SIZE
,
"host%d"
,
shost
->
host_no
);
snprintf
(
shost
->
shost_gendev
.
name
,
DEVICE_NAME_SIZE
,
"%s"
,
shost
->
hostt
->
proc_name
);
shost
->
shost_gendev
.
release
=
scsi_host_dev_release
;
class_device_initialize
(
&
shost
->
shost_classdev
);
...
...
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