diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-07-09 12:16:50 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-09 12:17:35 -0400 |
commit | bf6263a853c9c143bf03f0a6fdcc68ab714fb5f5 (patch) | |
tree | baf6189fc6e5c13934749488948e1cbfc6e65dea /drivers/ata/sata_via.c | |
parent | cd70c26617f4686355263be4533ce8030242740e (diff) |
[libata] Use ATA_UDMAx standard masks when filling driver's udma_mask info
The ATA_UDMAx masks are self-documenting, and far better than manually
writing in the hex mask.
Note that pata_it8213 mask differed from the comment. Added a FIXME there.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_via.c')
-rw-r--r-- | drivers/ata/sata_via.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index e816965ef4f1..a4c0832033d8 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c | |||
@@ -223,7 +223,7 @@ static const struct ata_port_info vt6420_port_info = { | |||
223 | .flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY, | 223 | .flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY, |
224 | .pio_mask = 0x1f, | 224 | .pio_mask = 0x1f, |
225 | .mwdma_mask = 0x07, | 225 | .mwdma_mask = 0x07, |
226 | .udma_mask = 0x7f, | 226 | .udma_mask = ATA_UDMA6, |
227 | .port_ops = &vt6420_sata_ops, | 227 | .port_ops = &vt6420_sata_ops, |
228 | }; | 228 | }; |
229 | 229 | ||
@@ -231,7 +231,7 @@ static struct ata_port_info vt6421_sport_info = { | |||
231 | .flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY, | 231 | .flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY, |
232 | .pio_mask = 0x1f, | 232 | .pio_mask = 0x1f, |
233 | .mwdma_mask = 0x07, | 233 | .mwdma_mask = 0x07, |
234 | .udma_mask = 0x7f, | 234 | .udma_mask = ATA_UDMA6, |
235 | .port_ops = &vt6421_sata_ops, | 235 | .port_ops = &vt6421_sata_ops, |
236 | }; | 236 | }; |
237 | 237 | ||
@@ -239,7 +239,7 @@ static struct ata_port_info vt6421_pport_info = { | |||
239 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_LEGACY, | 239 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_LEGACY, |
240 | .pio_mask = 0x1f, | 240 | .pio_mask = 0x1f, |
241 | .mwdma_mask = 0, | 241 | .mwdma_mask = 0, |
242 | .udma_mask = 0x7f, | 242 | .udma_mask = ATA_UDMA6, |
243 | .port_ops = &vt6421_pata_ops, | 243 | .port_ops = &vt6421_pata_ops, |
244 | }; | 244 | }; |
245 | 245 | ||