Skip to content

Commit 9f36d31

Browse files
committed
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>
1 parent dca3983 commit 9f36d31

28 files changed

Lines changed: 65 additions & 64 deletions

‎drivers/ide/at91_ide.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ irqreturn_t at91_irq_handler(int irq, void *dev_id)
247247
static int __init at91_ide_probe(struct platform_device *pdev)
248248
{
249249
int ret;
250-
hw_regs_t hw, *hws[] = { &hw };
250+
struct ide_hw hw, *hws[] = { &hw };
251251
struct ide_host *host;
252252
struct resource *res;
253253
unsigned long tf_base = 0, ctl_base = 0;

‎drivers/ide/au1xxx-ide.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ static int auide_ddma_init(ide_hwif_t *hwif, const struct ide_port_info *d)
449449
}
450450
#endif
451451

452-
static void auide_setup_ports(hw_regs_t *hw, _auide_hwif *ahwif)
452+
static void auide_setup_ports(struct ide_hw *hw, _auide_hwif *ahwif)
453453
{
454454
int i;
455455
unsigned long *ata_regs = hw->io_ports_array;
@@ -508,7 +508,7 @@ static int au_ide_probe(struct platform_device *dev)
508508
struct resource *res;
509509
struct ide_host *host;
510510
int ret = 0;
511-
hw_regs_t hw, *hws[] = { &hw };
511+
struct ide_hw hw, *hws[] = { &hw };
512512

513513
#if defined(CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA)
514514
char *mode = "MWDMA2";

‎drivers/ide/buddha.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int xsurf_ack_intr(ide_hwif_t *hwif)
121121
return 1;
122122
}
123123

124-
static void __init buddha_setup_ports(hw_regs_t *hw, unsigned long base,
124+
static void __init buddha_setup_ports(struct ide_hw *hw, unsigned long base,
125125
unsigned long ctl, unsigned long irq_port,
126126
ide_ack_intr_t *ack_intr)
127127
{
@@ -160,7 +160,7 @@ static int __init buddha_init(void)
160160

161161
while ((z = zorro_find_device(ZORRO_WILDCARD, z))) {
162162
unsigned long board;
163-
hw_regs_t hw[MAX_NUM_HWIFS], *hws[MAX_NUM_HWIFS];
163+
struct ide_hw hw[MAX_NUM_HWIFS], *hws[MAX_NUM_HWIFS];
164164

165165
if (z->id == ZORRO_PROD_INDIVIDUAL_COMPUTERS_BUDDHA) {
166166
buddha_num_hwifs = BUDDHA_NUM_HWIFS;

‎drivers/ide/cmd640.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ static int __init cmd640x_init(void)
708708
int second_port_cmd640 = 0, rc;
709709
const char *bus_type, *port2;
710710
u8 b, cfr;
711-
hw_regs_t hw[2], *hws[2];
711+
struct ide_hw hw[2], *hws[2];
712712

713713
if (cmd640_vlb && probe_for_cmd640_vlb()) {
714714
bus_type = "VLB";

‎drivers/ide/cs5520.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static const struct ide_port_info cyrix_chipset __devinitdata = {
110110
static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id)
111111
{
112112
const struct ide_port_info *d = &cyrix_chipset;
113-
hw_regs_t hw[2], *hws[] = { NULL, NULL };
113+
struct ide_hw hw[2], *hws[] = { NULL, NULL };
114114

115115
ide_setup_pci_noise(dev, d);
116116

‎drivers/ide/delkin_cb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id)
7777
struct ide_host *host;
7878
unsigned long base;
7979
int rc;
80-
hw_regs_t hw, *hws[] = { &hw };
80+
struct ide_hw hw, *hws[] = { &hw };
8181

8282
rc = pci_enable_device(dev);
8383
if (rc) {

‎drivers/ide/falconide.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static const struct ide_port_info falconide_port_info = {
114114
.chipset = ide_generic,
115115
};
116116

117-
static void __init falconide_setup_ports(hw_regs_t *hw)
117+
static void __init falconide_setup_ports(struct ide_hw *hw)
118118
{
119119
int i;
120120

@@ -138,7 +138,7 @@ static void __init falconide_setup_ports(hw_regs_t *hw)
138138
static int __init falconide_init(void)
139139
{
140140
struct ide_host *host;
141-
hw_regs_t hw, *hws[] = { &hw };
141+
struct ide_hw hw, *hws[] = { &hw };
142142
int rc;
143143

144144
if (!MACH_IS_ATARI || !ATARIHW_PRESENT(IDE))

‎drivers/ide/gayle.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static int gayle_ack_intr_a1200(ide_hwif_t *hwif)
8888
return 1;
8989
}
9090

91-
static void __init gayle_setup_ports(hw_regs_t *hw, unsigned long base,
91+
static void __init gayle_setup_ports(struct ide_hw *hw, unsigned long base,
9292
unsigned long ctl, unsigned long irq_port,
9393
ide_ack_intr_t *ack_intr)
9494
{
@@ -125,7 +125,7 @@ static int __init gayle_init(void)
125125
unsigned long base, ctrlport, irqport;
126126
ide_ack_intr_t *ack_intr;
127127
int a4000, i, rc;
128-
hw_regs_t hw[GAYLE_NUM_HWIFS], *hws[GAYLE_NUM_HWIFS];
128+
struct ide_hw hw[GAYLE_NUM_HWIFS], *hws[GAYLE_NUM_HWIFS];
129129

130130
if (!MACH_IS_AMIGA)
131131
return -ENODEV;

‎drivers/ide/icside.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static int icside_dma_off_init(ide_hwif_t *hwif, const struct ide_port_info *d)
381381
return -EOPNOTSUPP;
382382
}
383383

384-
static void icside_setup_ports(hw_regs_t *hw, void __iomem *base,
384+
static void icside_setup_ports(struct ide_hw *hw, void __iomem *base,
385385
struct cardinfo *info, struct expansion_card *ec)
386386
{
387387
unsigned long port = (unsigned long)base + info->dataoffset;
@@ -410,7 +410,7 @@ icside_register_v5(struct icside_state *state, struct expansion_card *ec)
410410
{
411411
void __iomem *base;
412412
struct ide_host *host;
413-
hw_regs_t hw, *hws[] = { &hw };
413+
struct ide_hw hw, *hws[] = { &hw };
414414
int ret;
415415

416416
base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0);
@@ -467,7 +467,7 @@ icside_register_v6(struct icside_state *state, struct expansion_card *ec)
467467
struct ide_host *host;
468468
unsigned int sel = 0;
469469
int ret;
470-
hw_regs_t hw[2], *hws[] = { &hw[0], &hw[1] };
470+
struct ide_hw hw[2], *hws[] = { &hw[0], &hw[1] };
471471
struct ide_port_info d = icside_v6_port_info;
472472

473473
ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0);

‎drivers/ide/ide-4drives.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static const struct ide_port_info ide_4drives_port_info = {
3131
static int __init ide_4drives_init(void)
3232
{
3333
unsigned long base = 0x1f0, ctl = 0x3f6;
34-
hw_regs_t hw, *hws[] = { &hw, &hw };
34+
struct ide_hw hw, *hws[] = { &hw, &hw };
3535

3636
if (probe_4drives == 0)
3737
return -ENODEV;

0 commit comments

Comments
 (0)