diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-04-13 20:50:00 +0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-04-16 15:22:18 -0400 |
commit | 62afe5d744047df8ff15a369f4c1ebad71c937d4 (patch) | |
tree | 58c3558ca4e39c0f2f6d25e0cccbf9b89eaabf3b /drivers | |
parent | 20cbf5f8c0fe3df2ddbde1f334993b4dda18a651 (diff) | |
download | linux-3.10-62afe5d744047df8ff15a369f4c1ebad71c937d4.tar.gz linux-3.10-62afe5d744047df8ff15a369f4c1ebad71c937d4.tar.bz2 linux-3.10-62afe5d744047df8ff15a369f4c1ebad71c937d4.zip |
libata: use ATA_ID_CFA_*
Use ATA_ID_CFA_* constants for CFA specific identify data words 162 and 163.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index a61af3818c8..17c5d48a75d 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -1656,8 +1656,8 @@ unsigned long ata_id_xfermask(const u16 *id) /* * Process compact flash extended modes */ - int pio = id[163] & 0x7; - int dma = (id[163] >> 3) & 7; + int pio = (id[ATA_ID_CFA_MODES] >> 0) & 0x7; + int dma = (id[ATA_ID_CFA_MODES] >> 3) & 0x7; if (pio) pio_mask |= (1 << 5); @@ -2426,7 +2426,8 @@ int ata_dev_configure(struct ata_device *dev) /* ATA-specific feature tests */ if (dev->class == ATA_DEV_ATA) { if (ata_id_is_cfa(id)) { - if (id[162] & 1) /* CPRM may make this media unusable */ + /* CPRM may make this media unusable */ + if (id[ATA_ID_CFA_KEY_MGMT] & 1) ata_dev_printk(dev, KERN_WARNING, "supports DRM functions and may " "not be fully accessable.\n"); |