summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo2007-05-14 20:28:16 +0200
committerJeff Garzik2007-07-09 18:17:31 +0200
commit4700c4bc9262a9e78f7197c4c41cc2be085d5276 (patch)
tree2156bedcbcfdee5d22dfb0a43f71bd4813933b7e /include
parentlibata-acpi: implement ata_acpi_associate() (diff)
downloadkernel-qcow2-linux-4700c4bc9262a9e78f7197c4c41cc2be085d5276.tar.gz
kernel-qcow2-linux-4700c4bc9262a9e78f7197c4c41cc2be085d5276.tar.xz
kernel-qcow2-linux-4700c4bc9262a9e78f7197c4c41cc2be085d5276.zip
libata-acpi: clean up ata_acpi_exec_tfs()
This patch cleans up ata_acpi_exec_tfs() and its friends. * Rename taskfile_array to ata_acpi_gtf and make it __packed as it's used as argument to ACPI method, and use pointer to ata_acpi_gtf and number of taskfiles to represent _GTF taskfiles instead of a pointer casted into unsigned long and byte count. This makes argument re-checking in do_drive_set_taskfiles() unnecessary. * Pointer in void * not in unsigned long. * Clean up do_drive_get_GTF() error handling and make do_drive_get_GTF() return number of taskfiles on success, 0 if _GTF doesn't exist or doesn't contain valid ata. -errno on other errors. * Remove superflous check for acpi->buffer.pointer. * Update taskfile_load_raw() such that printed messages look similar to the messages printed by ata_eh_report(). * s/do_drive_get_GTF/ata_dev_get_GTF/ s/do_drive_set_taskfiles/ata_dev_set_taskfiles/ Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions