aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJames Bottomley <jejb@titanic.(none)>2005-12-01 13:50:13 -0500
committerJames Bottomley <jejb@titanic.(none)>2005-12-13 20:12:05 -0500
commit7f23e146a122966bd58e5da9c16a0e12385f09fc (patch)
tree0d478b2724611e794f8f32d732775018c586fc6d /drivers
parent8a47cd340b4a299087f926ff2780d1eb08513f04 (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 'drivers')
-rw-r--r--drivers/scsi/scsi_devinfo.c5
-rw-r--r--drivers/scsi/scsi_priv.h3
2 files changed, 5 insertions, 3 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)
354 * @model, if found, return the matching flags value, else return 354 * @model, if found, return the matching flags value, else return
355 * the host or global default settings. 355 * the host or global default settings.
356 **/ 356 **/
357int scsi_get_device_flags(struct scsi_device *sdev, unsigned char *vendor, 357int scsi_get_device_flags(struct scsi_device *sdev,
358 unsigned char *model) 358 const unsigned char *vendor,
359 const unsigned char *model)
359{ 360{
360 struct scsi_dev_info_list *devinfo; 361 struct scsi_dev_info_list *devinfo;
361 unsigned int bflags; 362 unsigned int bflags;
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index d632d9e1493c..a8d121c8fbcd 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -57,7 +57,8 @@ static inline void scsi_log_completion(struct scsi_cmnd *cmd, int disposition)
57 57
58/* scsi_devinfo.c */ 58/* scsi_devinfo.c */
59extern int scsi_get_device_flags(struct scsi_device *sdev, 59extern int scsi_get_device_flags(struct scsi_device *sdev,
60 unsigned char *vendor, unsigned char *model); 60 const unsigned char *vendor,
61 const unsigned char *model);
61extern int __init scsi_init_devinfo(void); 62extern int __init scsi_init_devinfo(void);
62extern void scsi_exit_devinfo(void); 63extern void scsi_exit_devinfo(void);
63 64