diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-05-23 19:05:45 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-10 09:26:15 -0400 |
commit | 0bc202e0fd84b8c8d042bdf9f0995e1e47bdbf59 (patch) | |
tree | 697225daea137152e1aa63bc3d46843438752dae /drivers/scsi/aic94xx/aic94xx_seq.c | |
parent | 3b216d186c6df2642b397dbb67fbb7884ead0d88 (diff) |
aic94xx: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_seq.c')
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_seq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_seq.c b/drivers/scsi/aic94xx/aic94xx_seq.c index f4272ac4c685..8f98e33155e9 100644 --- a/drivers/scsi/aic94xx/aic94xx_seq.c +++ b/drivers/scsi/aic94xx/aic94xx_seq.c | |||
@@ -46,7 +46,7 @@ | |||
46 | static const struct firmware *sequencer_fw; | 46 | static const struct firmware *sequencer_fw; |
47 | static u16 cseq_vecs[CSEQ_NUM_VECS], lseq_vecs[LSEQ_NUM_VECS], mode2_task, | 47 | static u16 cseq_vecs[CSEQ_NUM_VECS], lseq_vecs[LSEQ_NUM_VECS], mode2_task, |
48 | cseq_idle_loop, lseq_idle_loop; | 48 | cseq_idle_loop, lseq_idle_loop; |
49 | static u8 *cseq_code, *lseq_code; | 49 | static const u8 *cseq_code, *lseq_code; |
50 | static u32 cseq_code_size, lseq_code_size; | 50 | static u32 cseq_code_size, lseq_code_size; |
51 | 51 | ||
52 | static u16 first_scb_site_no = 0xFFFF; | 52 | static u16 first_scb_site_no = 0xFFFF; |
@@ -1235,7 +1235,8 @@ int asd_release_firmware(void) | |||
1235 | static int asd_request_firmware(struct asd_ha_struct *asd_ha) | 1235 | static int asd_request_firmware(struct asd_ha_struct *asd_ha) |
1236 | { | 1236 | { |
1237 | int err, i; | 1237 | int err, i; |
1238 | struct sequencer_file_header header, *hdr_ptr; | 1238 | struct sequencer_file_header header; |
1239 | const struct sequencer_file_header *hdr_ptr; | ||
1239 | u32 csum = 0; | 1240 | u32 csum = 0; |
1240 | u16 *ptr_cseq_vecs, *ptr_lseq_vecs; | 1241 | u16 *ptr_cseq_vecs, *ptr_lseq_vecs; |
1241 | 1242 | ||
@@ -1249,7 +1250,7 @@ static int asd_request_firmware(struct asd_ha_struct *asd_ha) | |||
1249 | if (err) | 1250 | if (err) |
1250 | return err; | 1251 | return err; |
1251 | 1252 | ||
1252 | hdr_ptr = (struct sequencer_file_header *)sequencer_fw->data; | 1253 | hdr_ptr = (const struct sequencer_file_header *)sequencer_fw->data; |
1253 | 1254 | ||
1254 | header.csum = le32_to_cpu(hdr_ptr->csum); | 1255 | header.csum = le32_to_cpu(hdr_ptr->csum); |
1255 | header.major = le32_to_cpu(hdr_ptr->major); | 1256 | header.major = le32_to_cpu(hdr_ptr->major); |