libata: separate out ata_acpi_gtm_xfermask() from pacpi_discover_modes()
authorTejun Heo <htejun@gmail.com>
Tue, 18 Dec 2007 07:33:03 +0000 (16:33 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:12 +0000 (05:24 -0500)
commit7c77fa4d51b1480bcec2e898c94d6912fe063c16
treed7d18fb22c8df2425878d02f4b415c06efa56457
parent9cde9ed151e170f2e2a530f7ec0032dfbe9f443b
libata: separate out ata_acpi_gtm_xfermask() from pacpi_discover_modes()

Finding out matching transfer mode from ACPI GTM values is useful for
other purposes too.  Separate out the function and timing tables from
pata_acpi::pacpi_discover_modes().

Other than checking shared-configuration bit after doing
ata_acpi_gtm() in pacpi_discover_modes() which should be safe, this
patch doesn't introduce any behavior change.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-acpi.c
drivers/ata/pata_acpi.c
include/linux/libata.h