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_pci.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_pci.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_pci.c b/drivers/scsi/aic7xxx/aic79xx_pci.c index 0bb352573f57..c25b6adffbf9 100644 --- a/drivers/scsi/aic7xxx/aic79xx_pci.c +++ b/drivers/scsi/aic7xxx/aic79xx_pci.c | |||
@@ -97,7 +97,7 @@ static ahd_device_setup_t ahd_aic7901A_setup; | |||
97 | static ahd_device_setup_t ahd_aic7902_setup; | 97 | static ahd_device_setup_t ahd_aic7902_setup; |
98 | static ahd_device_setup_t ahd_aic790X_setup; | 98 | static ahd_device_setup_t ahd_aic790X_setup; |
99 | 99 | ||
100 | static struct ahd_pci_identity ahd_pci_ident_table[] = | 100 | static const struct ahd_pci_identity ahd_pci_ident_table[] = |
101 | { | 101 | { |
102 | /* aic7901 based controllers */ | 102 | /* aic7901 based controllers */ |
103 | { | 103 | { |
@@ -253,7 +253,7 @@ static void ahd_configure_termination(struct ahd_softc *ahd, | |||
253 | static void ahd_pci_split_intr(struct ahd_softc *ahd, u_int intstat); | 253 | static void ahd_pci_split_intr(struct ahd_softc *ahd, u_int intstat); |
254 | static void ahd_pci_intr(struct ahd_softc *ahd); | 254 | static void ahd_pci_intr(struct ahd_softc *ahd); |
255 | 255 | ||
256 | struct ahd_pci_identity * | 256 | const struct ahd_pci_identity * |
257 | ahd_find_pci_device(ahd_dev_softc_t pci) | 257 | ahd_find_pci_device(ahd_dev_softc_t pci) |
258 | { | 258 | { |
259 | uint64_t full_id; | 259 | uint64_t full_id; |
@@ -261,7 +261,7 @@ ahd_find_pci_device(ahd_dev_softc_t pci) | |||
261 | uint16_t vendor; | 261 | uint16_t vendor; |
262 | uint16_t subdevice; | 262 | uint16_t subdevice; |
263 | uint16_t subvendor; | 263 | uint16_t subvendor; |
264 | struct ahd_pci_identity *entry; | 264 | const struct ahd_pci_identity *entry; |
265 | u_int i; | 265 | u_int i; |
266 | 266 | ||
267 | vendor = ahd_pci_read_config(pci, PCIR_DEVVENDOR, /*bytes*/2); | 267 | vendor = ahd_pci_read_config(pci, PCIR_DEVVENDOR, /*bytes*/2); |
@@ -292,7 +292,7 @@ ahd_find_pci_device(ahd_dev_softc_t pci) | |||
292 | } | 292 | } |
293 | 293 | ||
294 | int | 294 | int |
295 | ahd_pci_config(struct ahd_softc *ahd, struct ahd_pci_identity *entry) | 295 | ahd_pci_config(struct ahd_softc *ahd, const struct ahd_pci_identity *entry) |
296 | { | 296 | { |
297 | struct scb_data *shared_scb_data; | 297 | struct scb_data *shared_scb_data; |
298 | u_int command; | 298 | u_int command; |