diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-12-01 19:50:13 +0100 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-12-14 02:12:05 +0100 |
commit | 7f23e146a122966bd58e5da9c16a0e12385f09fc (patch) | |
tree | 0d478b2724611e794f8f32d732775018c586fc6d /drivers/scsi/scsi_devinfo.c | |
parent | [SCSI] iscsi: check header digests for mgmt tasks (diff) | |
download | linux-7f23e146a122966bd58e5da9c16a0e12385f09fc.tar.xz linux-7f23e146a122966bd58e5da9c16a0e12385f09fc.zip |
[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 'drivers/scsi/scsi_devinfo.c')
-rw-r--r-- | drivers/scsi/scsi_devinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c index e69477d1889b..f01ec0a7c506 100644 --- a/drivers/scsi/scsi_devinfo.c +++ b/drivers/scsi/scsi_devinfo.c @@ -354,8 +354,9 @@ static int scsi_dev_info_list_add_str(char *dev_list) * @model, if found, return the matching flags value, else return * the host or global default settings. **/ -int scsi_get_device_flags(struct scsi_device *sdev, unsigned char *vendor, - unsigned char *model) +int scsi_get_device_flags(struct scsi_device *sdev, + const unsigned char *vendor, + const unsigned char *model) { struct scsi_dev_info_list *devinfo; unsigned int bflags; |