diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-12-01 13:50:13 -0500 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-12-13 20:12:05 -0500 |
commit | 7f23e146a122966bd58e5da9c16a0e12385f09fc (patch) | |
tree | 0d478b2724611e794f8f32d732775018c586fc6d /include/scsi | |
parent | 8a47cd340b4a299087f926ff2780d1eb08513f04 (diff) |
[SCSI] correct some dropped const compiler warnings
Make the vendor, model and rev fields in scsi_device pointers to const
and update a few prototypes of functions using them.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_device.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 85cfd88461c8..063e32fe036c 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -79,9 +79,9 @@ struct scsi_device { | |||
79 | char inq_periph_qual; /* PQ from INQUIRY data */ | 79 | char inq_periph_qual; /* PQ from INQUIRY data */ |
80 | unsigned char inquiry_len; /* valid bytes in 'inquiry' */ | 80 | unsigned char inquiry_len; /* valid bytes in 'inquiry' */ |
81 | unsigned char * inquiry; /* INQUIRY response data */ | 81 | unsigned char * inquiry; /* INQUIRY response data */ |
82 | char * vendor; /* [back_compat] point into 'inquiry' ... */ | 82 | const char * vendor; /* [back_compat] point into 'inquiry' ... */ |
83 | char * model; /* ... after scan; point to static string */ | 83 | const char * model; /* ... after scan; point to static string */ |
84 | char * rev; /* ... "nullnullnullnull" before scan */ | 84 | const char * rev; /* ... "nullnullnullnull" before scan */ |
85 | unsigned char current_tag; /* current tag */ | 85 | unsigned char current_tag; /* current tag */ |
86 | struct scsi_target *sdev_target; /* used only for single_lun */ | 86 | struct scsi_target *sdev_target; /* used only for single_lun */ |
87 | 87 | ||