aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic94xx/aic94xx_sds.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_sds.c')
-rw-r--r--drivers/scsi/aic94xx/aic94xx_sds.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_sds.c b/drivers/scsi/aic94xx/aic94xx_sds.c
index 4446e3d584dc..8630a75b2872 100644
--- a/drivers/scsi/aic94xx/aic94xx_sds.c
+++ b/drivers/scsi/aic94xx/aic94xx_sds.c
@@ -1093,9 +1093,9 @@ out:
1093 * @bytes_to_verify: total bytes to verify 1093 * @bytes_to_verify: total bytes to verify
1094 */ 1094 */
1095int asd_verify_flash_seg(struct asd_ha_struct *asd_ha, 1095int asd_verify_flash_seg(struct asd_ha_struct *asd_ha,
1096 void *src, u32 dest_offset, u32 bytes_to_verify) 1096 const void *src, u32 dest_offset, u32 bytes_to_verify)
1097{ 1097{
1098 u8 *src_buf; 1098 const u8 *src_buf;
1099 u8 flash_char; 1099 u8 flash_char;
1100 int err; 1100 int err;
1101 u32 nv_offset, reg, i; 1101 u32 nv_offset, reg, i;
@@ -1105,7 +1105,7 @@ int asd_verify_flash_seg(struct asd_ha_struct *asd_ha,
1105 1105
1106 err = FLASH_OK; 1106 err = FLASH_OK;
1107 nv_offset = dest_offset; 1107 nv_offset = dest_offset;
1108 src_buf = (u8 *)src; 1108 src_buf = (const u8 *)src;
1109 for (i = 0; i < bytes_to_verify; i++) { 1109 for (i = 0; i < bytes_to_verify; i++) {
1110 flash_char = asd_read_reg_byte(asd_ha, reg + nv_offset + i); 1110 flash_char = asd_read_reg_byte(asd_ha, reg + nv_offset + i);
1111 if (flash_char != src_buf[i]) { 1111 if (flash_char != src_buf[i]) {
@@ -1124,9 +1124,9 @@ int asd_verify_flash_seg(struct asd_ha_struct *asd_ha,
1124 * @bytes_to_write: total bytes to write 1124 * @bytes_to_write: total bytes to write
1125 */ 1125 */
1126int asd_write_flash_seg(struct asd_ha_struct *asd_ha, 1126int asd_write_flash_seg(struct asd_ha_struct *asd_ha,
1127 void *src, u32 dest_offset, u32 bytes_to_write) 1127 const void *src, u32 dest_offset, u32 bytes_to_write)
1128{ 1128{
1129 u8 *src_buf; 1129 const u8 *src_buf;
1130 u32 nv_offset, reg, i; 1130 u32 nv_offset, reg, i;
1131 int err; 1131 int err;
1132 1132
@@ -1153,7 +1153,7 @@ int asd_write_flash_seg(struct asd_ha_struct *asd_ha,
1153 return err; 1153 return err;
1154 } 1154 }
1155 1155
1156 src_buf = (u8 *)src; 1156 src_buf = (const u8 *)src;
1157 for (i = 0; i < bytes_to_write; i++) { 1157 for (i = 0; i < bytes_to_write; i++) {
1158 /* Setup program command sequence */ 1158 /* Setup program command sequence */
1159 switch (asd_ha->hw_prof.flash.method) { 1159 switch (asd_ha->hw_prof.flash.method) {