]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
libata: make ata_tf_to_lba[48]() generic
authorTejun Heo <htejun@gmail.com>
Thu, 27 Mar 2008 10:14:23 +0000 (19:14 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:20 +0000 (15:44 -0400)
commita5987e0a1b569146ed9cfa0a8c275a21b344fcaa
tree23c6f0e4ac2e521fdcb87aadf214ad8987b67b22
parent06993d2237da45615b5a9a4dde3f344ce97ca17d
libata: make ata_tf_to_lba[48]() generic

ata_tf_to_lba[48]() currently return LBA in tf + 1 for
ata_read_native_max_address().  Make them return LBA and make it
global so that it can be used to read LBA off TF for other purposes.
ata_read_native_max_address() now adds 1 itself.

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