aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:34 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-19 18:32:34 -0400
commit8562043606430185cad26d085d46adcc7ad67fd1 (patch)
treeefcc9159a230eb62d023d38c465249ddaa252cc6 /include
parent039788e1532368eeca1071a873c14e03920cdf38 (diff)
ide: constify struct ide_port_info
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index eaebd4fcb857..2e4b8dd03cfe 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -680,7 +680,7 @@ typedef struct hwif_s {
680 hwif_chipset_t chipset; /* sub-module for tuning.. */ 680 hwif_chipset_t chipset; /* sub-module for tuning.. */
681 681
682 struct pci_dev *pci_dev; /* for pci chipsets */ 682 struct pci_dev *pci_dev; /* for pci chipsets */
683 struct ide_port_info *cds; /* chipset device struct */ 683 const struct ide_port_info *cds; /* chipset device struct */
684 684
685 ide_ack_intr_t *ack_intr; 685 ide_ack_intr_t *ack_intr;
686 686
@@ -1150,8 +1150,8 @@ extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *o
1150#define ide_pci_register_driver(d) pci_register_driver(d) 1150#define ide_pci_register_driver(d) pci_register_driver(d)
1151#endif 1151#endif
1152 1152
1153void ide_pci_setup_ports(struct pci_dev *, struct ide_port_info *, int, u8 *); 1153void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, int, u8 *);
1154void ide_setup_pci_noise(struct pci_dev *, struct ide_port_info *); 1154void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *);
1155 1155
1156extern void default_hwif_iops(ide_hwif_t *); 1156extern void default_hwif_iops(ide_hwif_t *);
1157extern void default_hwif_mmiops(ide_hwif_t *); 1157extern void default_hwif_mmiops(ide_hwif_t *);
@@ -1244,8 +1244,8 @@ struct ide_port_info {
1244 u8 udma_mask; 1244 u8 udma_mask;
1245}; 1245};
1246 1246
1247int ide_setup_pci_device(struct pci_dev *, struct ide_port_info *); 1247int ide_setup_pci_device(struct pci_dev *, const struct ide_port_info *);
1248int ide_setup_pci_devices(struct pci_dev *, struct pci_dev *, struct ide_port_info *); 1248int ide_setup_pci_devices(struct pci_dev *, struct pci_dev *, const struct ide_port_info *);
1249 1249
1250void ide_map_sg(ide_drive_t *, struct request *); 1250void ide_map_sg(ide_drive_t *, struct request *);
1251void ide_init_sg_cmd(ide_drive_t *, struct request *); 1251void ide_init_sg_cmd(ide_drive_t *, struct request *);