From: Tejun Heo Date: Mon, 3 Sep 2007 03:32:30 +0000 (+0900) Subject: libata: clean up read/set native_max address functions X-Git-Tag: v2.6.24-rc1~1391^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c728a9149f519cbb9f610962873f4e22ed4a6efd;p=pandora-kernel.git libata: clean up read/set native_max address functions Merge ata_read_native_max_addres_ext() into ata_read_native_max_address() and combine ata_set_native_max_address_ext() and ata_set_native_max_address() into ata_set_max_sectors(). * reduce duplicate code * return 0 or -errno depending on error conditions * report if command fails * use ATA_LBA instead of 0x40 This is in preparation of ata_hpa_resize() update. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed