diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-05-17 13:12:25 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-05-17 13:12:25 -0400 |
| commit | 9f36d31437922354d104a2db407f397e79e4027e (patch) | |
| tree | a799933c3d327103b49298416581e8ad5e788d43 /include | |
| parent | dca3983059a4481e4ae97bbf0ac4b4c21429e1a5 (diff) | |
ide: remove hw_regs_t typedef
Remove hw_regs_t typedef and rename struct hw_regs_s to struct ide_hw.
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ide.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index a3cd568553d3..b1b903a0dac8 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -178,7 +178,7 @@ typedef u8 hwif_chipset_t; | |||
| 178 | /* | 178 | /* |
| 179 | * Structure to hold all information about the location of this port | 179 | * Structure to hold all information about the location of this port |
| 180 | */ | 180 | */ |
| 181 | typedef struct hw_regs_s { | 181 | struct ide_hw { |
| 182 | union { | 182 | union { |
| 183 | struct ide_io_ports io_ports; | 183 | struct ide_io_ports io_ports; |
| 184 | unsigned long io_ports_array[IDE_NR_PORTS]; | 184 | unsigned long io_ports_array[IDE_NR_PORTS]; |
| @@ -188,9 +188,9 @@ typedef struct hw_regs_s { | |||
| 188 | ide_ack_intr_t *ack_intr; /* acknowledge interrupt */ | 188 | ide_ack_intr_t *ack_intr; /* acknowledge interrupt */ |
| 189 | struct device *dev, *parent; | 189 | struct device *dev, *parent; |
| 190 | unsigned long config; | 190 | unsigned long config; |
| 191 | } hw_regs_t; | 191 | }; |
| 192 | 192 | ||
| 193 | static inline void ide_std_init_ports(hw_regs_t *hw, | 193 | static inline void ide_std_init_ports(struct ide_hw *hw, |
| 194 | unsigned long io_addr, | 194 | unsigned long io_addr, |
| 195 | unsigned long ctl_addr) | 195 | unsigned long ctl_addr) |
| 196 | { | 196 | { |
| @@ -1212,7 +1212,7 @@ static inline int ide_pci_is_in_compatibility_mode(struct pci_dev *dev) | |||
| 1212 | } | 1212 | } |
| 1213 | 1213 | ||
| 1214 | void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, | 1214 | void ide_pci_setup_ports(struct pci_dev *, const struct ide_port_info *, |
| 1215 | hw_regs_t *, hw_regs_t **); | 1215 | struct ide_hw *, struct ide_hw **); |
| 1216 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); | 1216 | void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *); |
| 1217 | 1217 | ||
| 1218 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI | 1218 | #ifdef CONFIG_BLK_DEV_IDEDMA_PCI |
| @@ -1456,12 +1456,12 @@ void ide_undecoded_slave(ide_drive_t *); | |||
| 1456 | void ide_port_apply_params(ide_hwif_t *); | 1456 | void ide_port_apply_params(ide_hwif_t *); |
| 1457 | int ide_sysfs_register_port(ide_hwif_t *); | 1457 | int ide_sysfs_register_port(ide_hwif_t *); |
| 1458 | 1458 | ||
| 1459 | struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **, | 1459 | struct ide_host *ide_host_alloc(const struct ide_port_info *, struct ide_hw **, |
| 1460 | unsigned int); | 1460 | unsigned int); |
| 1461 | void ide_host_free(struct ide_host *); | 1461 | void ide_host_free(struct ide_host *); |
| 1462 | int ide_host_register(struct ide_host *, const struct ide_port_info *, | 1462 | int ide_host_register(struct ide_host *, const struct ide_port_info *, |
| 1463 | hw_regs_t **); | 1463 | struct ide_hw **); |
| 1464 | int ide_host_add(const struct ide_port_info *, hw_regs_t **, unsigned int, | 1464 | int ide_host_add(const struct ide_port_info *, struct ide_hw **, unsigned int, |
| 1465 | struct ide_host **); | 1465 | struct ide_host **); |
| 1466 | void ide_host_remove(struct ide_host *); | 1466 | void ide_host_remove(struct ide_host *); |
| 1467 | int ide_legacy_device_add(const struct ide_port_info *, unsigned long); | 1467 | int ide_legacy_device_add(const struct ide_port_info *, unsigned long); |
