summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt3x2n.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-05-15 03:28:16 +0900
committerJeff Garzik <jeff@garzik.org>2007-07-09 12:17:31 -0400
commit4700c4bc9262a9e78f7197c4c41cc2be085d5276 (patch)
tree2156bedcbcfdee5d22dfb0a43f71bd4813933b7e /drivers/ata/pata_hpt3x2n.c
parentfafbae87db88a73b166d3bc3294d209207f27056 (diff)
downloadkernel-crypto-4700c4bc9262a9e78f7197c4c41cc2be085d5276.tar.gz
kernel-crypto-4700c4bc9262a9e78f7197c4c41cc2be085d5276.tar.xz
kernel-crypto-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 'drivers/ata/pata_hpt3x2n.c')
0 files changed, 0 insertions, 0 deletions