libata: Clarify ata_set_lba_range_entries function
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2009 17:00:43 +0000 (12:00 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 3 Dec 2009 23:01:23 +0000 (18:01 -0500)
commitd0634c4aea0b80447cbdc4c0db285004b860c455
tree5d723e58b0feb11d049b7398e4c3f4600be01d9c
parente78db4dfb1355a895f7ea50133b702b55b8ed184
libata: Clarify ata_set_lba_range_entries function

ata_set_lba_range_entries used the variable max for two different things
which was confusing.  Make the function take a buffer size in bytes as
argument and return the used buffer size upon completion.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-scsi.c
include/linux/ata.h