diff options
-rw-r--r-- | drivers/scsi/scsi_devinfo.c | 5 | ||||
-rw-r--r-- | drivers/scsi/scsi_priv.h | 3 | ||||
-rw-r--r-- | include/scsi/scsi_device.h | 6 |
3 files changed, 8 insertions, 6 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 | **/ |
357 | int scsi_get_device_flags(struct scsi_device *sdev, unsigned char *vendor, | 357 | int 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 */ |
59 | extern int scsi_get_device_flags(struct scsi_device *sdev, | 59 | extern 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); | ||
61 | extern int __init scsi_init_devinfo(void); | 62 | extern int __init scsi_init_devinfo(void); |
62 | extern void scsi_exit_devinfo(void); | 63 | extern void scsi_exit_devinfo(void); |
63 | 64 | ||
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 | ||