summaryrefslogtreecommitdiff
path: root/drivers/scsi/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-05-15 20:57:53 +0900
committerTejun Heo <htejun@gmail.com>2006-05-15 20:57:53 +0900
commit3373efd89dead4ce7818d685729e0431448357c9 (patch)
treed7e7a1afd83e269c3c0978f924cd8c54d9be7f5a /drivers/scsi/libata.h
parent38d87234d6c47ca487fc6344100323d5adc6f32c (diff)
downloadlinux-3.10-3373efd89dead4ce7818d685729e0431448357c9.tar.gz
linux-3.10-3373efd89dead4ce7818d685729e0431448357c9.tar.bz2
linux-3.10-3373efd89dead4ce7818d685729e0431448357c9.zip
[PATCH] libata: use dev->ap
Use dev->ap where possible and eliminate superflous @ap from functions and structures. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/libata.h')
-rw-r--r--drivers/scsi/libata.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h
index 6442c2f1a80..c9ff83bbcfa 100644
--- a/drivers/scsi/libata.h
+++ b/drivers/scsi/libata.h
@@ -32,7 +32,6 @@
#define DRV_VERSION "1.30" /* must be exactly four chars */
struct ata_scsi_args {
- struct ata_port *ap;
struct ata_device *dev;
u16 *id;
struct scsi_cmnd *cmd;
@@ -43,18 +42,16 @@ struct ata_scsi_args {
extern int atapi_enabled;
extern int atapi_dmadir;
extern int libata_fua;
-extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap,
- struct ata_device *dev);
+extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev);
extern int ata_rwcmd_protocol(struct ata_queued_cmd *qc);
-extern void ata_dev_disable(struct ata_port *ap, struct ata_device *dev);
+extern void ata_dev_disable(struct ata_device *dev);
extern void ata_port_flush_task(struct ata_port *ap);
-extern unsigned ata_exec_internal(struct ata_port *ap, struct ata_device *dev,
+extern unsigned ata_exec_internal(struct ata_device *dev,
struct ata_taskfile *tf, const u8 *cdb,
int dma_dir, void *buf, unsigned int buflen);
extern int sata_down_spd_limit(struct ata_port *ap);
extern int sata_set_spd_needed(struct ata_port *ap);
-extern int ata_down_xfermask_limit(struct ata_port *ap, struct ata_device *dev,
- int force_pio0);
+extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0);
extern int ata_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev);
extern int ata_do_reset(struct ata_port *ap, ata_reset_fn_t reset,
unsigned int *classes);