]> git.baikalelectronics.ru Git - kernel.git/commit
libata: kill ata_id_to_dma_mode()
authorTejun Heo <htejun@gmail.com>
Tue, 27 Nov 2007 10:43:41 +0000 (19:43 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:11 +0000 (05:24 -0500)
commitf23f85d6700261bd3557038f82d0e2b4d0b67fec
treea4785ca835e1b0ca5551167cf0ecf484eed8b71b
parent61029f92199c56250561bf4b877e177caba42af2
libata: kill ata_id_to_dma_mode()

ata_id_to_dma_mode() isn't quite generic.  The function is basically
privately implemented ata_id_xfermask() combined with hardcoded mode
printing and configuration which are specific to ata_generic.

Kill the function and open code it in generic_set_mode() using generic
xfermode handling functions.

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