Skip to content

Commit

Permalink
[SCSI] Make scsi_host_template::proc_name const char * instead of cha…
Browse files Browse the repository at this point in the history
…r *.

Signed-off-by: Kristian Høgsberg <[email protected]>

collapsed with fw-sbp2 patch "Drop cast to non-const char * in host
template initialization." from Kristian Høgsberg

Signed-off-by: Stefan Richter <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
Kristian Høgsberg authored and James Bottomley committed Jul 19, 2007
1 parent b4e4459 commit b02b6bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/firewire/fw-sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ static struct device_attribute *sbp2_scsi_sysfs_attrs[] = {
static struct scsi_host_template scsi_driver_template = {
.module = THIS_MODULE,
.name = "SBP-2 IEEE-1394",
.proc_name = (char *)sbp2_driver_name,
.proc_name = sbp2_driver_name,
.queuecommand = sbp2_scsi_queuecommand,
.slave_alloc = sbp2_scsi_slave_alloc,
.slave_configure = sbp2_scsi_slave_configure,
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -2875,7 +2875,7 @@ static int __init scsi_debug_init(void)

init_all_queued();

sdebug_driver_template.proc_name = (char *)sdebug_proc_name;
sdebug_driver_template.proc_name = sdebug_proc_name;

host_to_add = scsi_debug_add_host;
scsi_debug_add_host = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/scsi/scsi_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ struct scsi_host_template {
/*
* Name of proc directory
*/
char *proc_name;
const char *proc_name;

/*
* Used to store the procfs directory if a driver implements the
Expand Down

0 comments on commit b02b6bc

Please sign in to comment.