[SCSI] Make scsi_host_template::proc_name const char * instead of char *.
authorKristian Høgsberg <krh@redhat.com>
Wed, 9 May 2007 23:23:12 +0000 (19:23 -0400)
committerJames Bottomley <jejb@mulgrave.localdomain>
Thu, 19 Jul 2007 17:06:26 +0000 (12:06 -0500)
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
collapsed with fw-sbp2 patch "Drop cast to non-const char * in host
template initialization." from Kristian Høgsberg

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/firewire/fw-sbp2.c
drivers/scsi/scsi_debug.c
include/scsi/scsi_host.h

index 7c53be0387fbb675b8c26453982d14a6ddf9da0d..e5e5b0a2b8a9a343b78931002f3246fad91a8ca6 100644 (file)
@@ -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,
index 4cd9c58efef12007f208dd0bf07710cd87313cce..4947dfe625a6f694546b3862c9f4d92b9b332f7f 100644 (file)
@@ -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;
index ba07cf7c04baa69ca12dd8858e450f18595115b7..3b8a6a85c2f818e64435968136472fa7d2317bc1 100644 (file)
@@ -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