libata: clean up xfermode / PATA timing related stuff
authorTejun Heo <htejun@gmail.com>
Tue, 27 Nov 2007 10:43:40 +0000 (19:43 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:11 +0000 (05:24 -0500)
commit70cd071e4ecc06c985189665af75c108601fd5a3
treef28aae811d01f8ef44f27e5d469fe330ff834980
parent6357357cae7794dcb89cace758108dec612e7ed5
libata: clean up xfermode / PATA timing related stuff

* s/ATA_BITS_(PIO|MWDMA|UDMA)/ATA_NR_\1_MODES/g

* Consistently use 0xff to indicate invalid transfer mode (0x00 is
  valid for PIO_SLOW).

* Make ata_xfer_mode2mask() return proper mode mask instead of just
  the highest bit.

* Sort ata_timing table in increasing xfermode order and update
  ata_timing_find_mode() accordingly.

This patch doesn't introduce any behavior change.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
include/linux/libata.h