aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_core.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_core.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_core.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c
index 62417ed17cf3..0ae2b4605d09 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_core.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_core.c
@@ -221,7 +221,7 @@ static void ahc_dumpseq(struct ahc_softc *ahc);
221#endif 221#endif
222static int ahc_loadseq(struct ahc_softc *ahc); 222static int ahc_loadseq(struct ahc_softc *ahc);
223static int ahc_check_patch(struct ahc_softc *ahc, 223static int ahc_check_patch(struct ahc_softc *ahc,
224 struct patch **start_patch, 224 const struct patch **start_patch,
225 u_int start_instr, u_int *skip_addr); 225 u_int start_instr, u_int *skip_addr);
226static void ahc_download_instr(struct ahc_softc *ahc, 226static void ahc_download_instr(struct ahc_softc *ahc,
227 u_int instrptr, uint8_t *dconsts); 227 u_int instrptr, uint8_t *dconsts);
@@ -6851,7 +6851,7 @@ ahc_loadseq(struct ahc_softc *ahc)
6851 struct cs cs_table[num_critical_sections]; 6851 struct cs cs_table[num_critical_sections];
6852 u_int begin_set[num_critical_sections]; 6852 u_int begin_set[num_critical_sections];
6853 u_int end_set[num_critical_sections]; 6853 u_int end_set[num_critical_sections];
6854 struct patch *cur_patch; 6854 const struct patch *cur_patch;
6855 u_int cs_count; 6855 u_int cs_count;
6856 u_int cur_cs; 6856 u_int cur_cs;
6857 u_int i; 6857 u_int i;
@@ -6956,11 +6956,11 @@ ahc_loadseq(struct ahc_softc *ahc)
6956} 6956}
6957 6957
6958static int 6958static int
6959ahc_check_patch(struct ahc_softc *ahc, struct patch **start_patch, 6959ahc_check_patch(struct ahc_softc *ahc, const struct patch **start_patch,
6960 u_int start_instr, u_int *skip_addr) 6960 u_int start_instr, u_int *skip_addr)
6961{ 6961{
6962 struct patch *cur_patch; 6962 const struct patch *cur_patch;
6963 struct patch *last_patch; 6963 const struct patch *last_patch;
6964 u_int num_patches; 6964 u_int num_patches;
6965 6965
6966 num_patches = ARRAY_SIZE(patches); 6966 num_patches = ARRAY_SIZE(patches);
@@ -7019,7 +7019,7 @@ ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts)
7019 case AIC_OP_JE: 7019 case AIC_OP_JE:
7020 case AIC_OP_JZ: 7020 case AIC_OP_JZ:
7021 { 7021 {
7022 struct patch *cur_patch; 7022 const struct patch *cur_patch;
7023 int address_offset; 7023 int address_offset;
7024 u_int address; 7024 u_int address;
7025 u_int skip_addr; 7025 u_int skip_addr;