aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_osm.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2008-04-24 22:36:01 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-27 13:20:00 -0400
commit980b306a297725d4f25c779ca15086de757acadf (patch)
tree74a8c1482fa49eaec5100438c75735cab83adf2a /drivers/scsi/aic7xxx/aic7xxx_osm.c
parentd1d7b19d433188e94fc87cc7ca66363cd77a0bba (diff)
[SCSI] aic7xxx: add const
This patch adds more const keywords where appropriate. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index 01118c3f56b5..fd2b9785ff4f 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -511,13 +511,11 @@ ahc_linux_info(struct Scsi_Host *host)
511 bp = &buffer[0]; 511 bp = &buffer[0];
512 ahc = *(struct ahc_softc **)host->hostdata; 512 ahc = *(struct ahc_softc **)host->hostdata;
513 memset(bp, 0, sizeof(buffer)); 513 memset(bp, 0, sizeof(buffer));
514 strcpy(bp, "Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev "); 514 strcpy(bp, "Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev " AIC7XXX_DRIVER_VERSION "\n"
515 strcat(bp, AIC7XXX_DRIVER_VERSION); 515 " <");
516 strcat(bp, "\n");
517 strcat(bp, " <");
518 strcat(bp, ahc->description); 516 strcat(bp, ahc->description);
519 strcat(bp, ">\n"); 517 strcat(bp, ">\n"
520 strcat(bp, " "); 518 " ");
521 ahc_controller_info(ahc, ahc_info); 519 ahc_controller_info(ahc, ahc_info);
522 strcat(bp, ahc_info); 520 strcat(bp, ahc_info);
523 strcat(bp, "\n"); 521 strcat(bp, "\n");
@@ -1033,7 +1031,7 @@ aic7xxx_setup(char *s)
1033 char *p; 1031 char *p;
1034 char *end; 1032 char *end;
1035 1033
1036 static struct { 1034 static const struct {
1037 const char *name; 1035 const char *name;
1038 uint32_t *flag; 1036 uint32_t *flag;
1039 } options[] = { 1037 } options[] = {