diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2008-04-24 22:36:01 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-27 13:20:00 -0400 |
commit | 980b306a297725d4f25c779ca15086de757acadf (patch) | |
tree | 74a8c1482fa49eaec5100438c75735cab83adf2a /drivers/scsi/aic7xxx/aic79xx_osm.c | |
parent | d1d7b19d433188e94fc87cc7ca66363cd77a0bba (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/aic79xx_osm.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_osm.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index ea0bbda47324..0f829b3b8ab7 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c | |||
@@ -193,7 +193,7 @@ struct ahd_linux_iocell_opts | |||
193 | #define AIC79XX_PRECOMP_INDEX 0 | 193 | #define AIC79XX_PRECOMP_INDEX 0 |
194 | #define AIC79XX_SLEWRATE_INDEX 1 | 194 | #define AIC79XX_SLEWRATE_INDEX 1 |
195 | #define AIC79XX_AMPLITUDE_INDEX 2 | 195 | #define AIC79XX_AMPLITUDE_INDEX 2 |
196 | static struct ahd_linux_iocell_opts aic79xx_iocell_info[] = | 196 | static const struct ahd_linux_iocell_opts aic79xx_iocell_info[] = |
197 | { | 197 | { |
198 | AIC79XX_DEFAULT_IOOPTS, | 198 | AIC79XX_DEFAULT_IOOPTS, |
199 | AIC79XX_DEFAULT_IOOPTS, | 199 | AIC79XX_DEFAULT_IOOPTS, |
@@ -557,13 +557,11 @@ ahd_linux_info(struct Scsi_Host *host) | |||
557 | bp = &buffer[0]; | 557 | bp = &buffer[0]; |
558 | ahd = *(struct ahd_softc **)host->hostdata; | 558 | ahd = *(struct ahd_softc **)host->hostdata; |
559 | memset(bp, 0, sizeof(buffer)); | 559 | memset(bp, 0, sizeof(buffer)); |
560 | strcpy(bp, "Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev "); | 560 | strcpy(bp, "Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev " AIC79XX_DRIVER_VERSION "\n" |
561 | strcat(bp, AIC79XX_DRIVER_VERSION); | 561 | " <"); |
562 | strcat(bp, "\n"); | ||
563 | strcat(bp, " <"); | ||
564 | strcat(bp, ahd->description); | 562 | strcat(bp, ahd->description); |
565 | strcat(bp, ">\n"); | 563 | strcat(bp, ">\n" |
566 | strcat(bp, " "); | 564 | " "); |
567 | ahd_controller_info(ahd, ahd_info); | 565 | ahd_controller_info(ahd, ahd_info); |
568 | strcat(bp, ahd_info); | 566 | strcat(bp, ahd_info); |
569 | 567 | ||
@@ -1148,7 +1146,7 @@ aic79xx_setup(char *s) | |||
1148 | char *p; | 1146 | char *p; |
1149 | char *end; | 1147 | char *end; |
1150 | 1148 | ||
1151 | static struct { | 1149 | static const struct { |
1152 | const char *name; | 1150 | const char *name; |
1153 | uint32_t *flag; | 1151 | uint32_t *flag; |
1154 | } options[] = { | 1152 | } options[] = { |
@@ -1380,7 +1378,7 @@ ahd_platform_init(struct ahd_softc *ahd) | |||
1380 | * Lookup and commit any modified IO Cell options. | 1378 | * Lookup and commit any modified IO Cell options. |
1381 | */ | 1379 | */ |
1382 | if (ahd->unit < ARRAY_SIZE(aic79xx_iocell_info)) { | 1380 | if (ahd->unit < ARRAY_SIZE(aic79xx_iocell_info)) { |
1383 | struct ahd_linux_iocell_opts *iocell_opts; | 1381 | const struct ahd_linux_iocell_opts *iocell_opts; |
1384 | 1382 | ||
1385 | iocell_opts = &aic79xx_iocell_info[ahd->unit]; | 1383 | iocell_opts = &aic79xx_iocell_info[ahd->unit]; |
1386 | if (iocell_opts->precomp != AIC79XX_DEFAULT_PRECOMP) | 1384 | if (iocell_opts->precomp != AIC79XX_DEFAULT_PRECOMP) |
@@ -2770,7 +2768,7 @@ static void ahd_linux_set_pcomp_en(struct scsi_target *starget, int pcomp) | |||
2770 | uint8_t precomp; | 2768 | uint8_t precomp; |
2771 | 2769 | ||
2772 | if (ahd->unit < ARRAY_SIZE(aic79xx_iocell_info)) { | 2770 | if (ahd->unit < ARRAY_SIZE(aic79xx_iocell_info)) { |
2773 | struct ahd_linux_iocell_opts *iocell_opts; | 2771 | const struct ahd_linux_iocell_opts *iocell_opts; |
2774 | 2772 | ||
2775 | iocell_opts = &aic79xx_iocell_info[ahd->unit]; | 2773 | iocell_opts = &aic79xx_iocell_info[ahd->unit]; |
2776 | precomp = iocell_opts->precomp; | 2774 | precomp = iocell_opts->precomp; |