From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: linux-ide@vger.kernel.org
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/5] it821x: remove DECLARE_ITE_DEV() macro
Date: Mon, 14 Jul 2008 17:11:09 +0200 [thread overview]
Message-ID: <20080714151109.3106.80300.sendpatchset@localhost.localdomain> (raw)
In-Reply-To: <20080714151055.3106.78013.sendpatchset@localhost.localdomain>
While at it:
* it821x_chipsets[] -> it821x_chipset.
* Fix it821x_chipset's name field (as it is used for IT8211/8212).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/pci/it821x.c | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
Index: b/drivers/ide/pci/it821x.c
===================================================================
--- a/drivers/ide/pci/it821x.c
+++ b/drivers/ide/pci/it821x.c
@@ -622,17 +622,12 @@ static const struct ide_port_ops it821x_
.cable_detect = it821x_cable_detect,
};
-#define DECLARE_ITE_DEV(name_str) \
- { \
- .name = name_str, \
- .init_chipset = init_chipset_it821x, \
- .init_hwif = init_hwif_it821x, \
- .port_ops = &it821x_port_ops, \
- .pio_mask = ATA_PIO4, \
- }
-
-static const struct ide_port_info it821x_chipsets[] __devinitdata = {
- /* 0 */ DECLARE_ITE_DEV("IT8212"),
+static const struct ide_port_info it821x_chipset __devinitdata = {
+ .name = "IT821X",
+ .init_chipset = init_chipset_it821x,
+ .init_hwif = init_hwif_it821x,
+ .port_ops = &it821x_port_ops,
+ .pio_mask = ATA_PIO4,
};
/**
@@ -655,7 +650,7 @@ static int __devinit it821x_init_one(str
return -ENOMEM;
}
- rc = ide_pci_init_one(dev, &it821x_chipsets[id->driver_data], itdevs);
+ rc = ide_pci_init_one(dev, &it821x_chipset, itdevs);
if (rc)
kfree(itdevs);
next prev parent reply other threads:[~2008-07-13 15:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-14 15:10 [PATCH 1/5] ide: include PCI device name in messages from IDE PCI host drivers Bartlomiej Zolnierkiewicz
2008-07-14 15:11 ` [PATCH 2/5] it8213: remove DECLARE_ITE_DEV() macro Bartlomiej Zolnierkiewicz
2008-07-14 15:11 ` Bartlomiej Zolnierkiewicz [this message]
2008-07-14 15:11 ` [PATCH 4/5] ide: prefix messages from IDE PCI host drivers by driver name Bartlomiej Zolnierkiewicz
2008-07-14 15:11 ` [PATCH 5/5] ide: drop 'name' parameter from ->init_chipset method Bartlomiej Zolnierkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080714151109.3106.80300.sendpatchset@localhost.localdomain \
--to=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).