Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b02b6bc46571b21a545c9e697df1e226ff22bc81
Commit:     b02b6bc46571b21a545c9e697df1e226ff22bc81
Parent:     b4e44590f0811e629faf2de4aea15e752d83ce3d
Author:     Kristian Høgsberg <[EMAIL PROTECTED]>
AuthorDate: Wed May 9 19:23:12 2007 -0400
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Thu Jul 19 12:06:26 2007 -0500

    [SCSI] Make scsi_host_template::proc_name const char * instead of char *.
    
    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]>
---
 drivers/firewire/fw-sbp2.c |    2 +-
 drivers/scsi/scsi_debug.c  |    2 +-
 include/scsi/scsi_host.h   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index 7c53be0..e5e5b0a 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -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,
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 4cd9c58..4947dfe 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -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;
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index ba07cf7..3b8a6a8 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to