]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
libata: move struct ata_scsi_args to libata-scsi.c
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2017 08:41:44 +0000 (09:41 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 10 Jan 2017 15:55:39 +0000 (10:55 -0500)
It's only used in libata-scsi.c, so move it closer to the users.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c
drivers/ata/libata.h

index 031a77aae19d5a78af5cb73301f309c21a2edee5..43694f5f2c89c5f32c883f73b54809a7a9f2e8a3 100644 (file)
@@ -2057,6 +2057,13 @@ defer:
                return SCSI_MLQUEUE_HOST_BUSY;
 }
 
+struct ata_scsi_args {
+       struct ata_device       *dev;
+       u16                     *id;
+       struct scsi_cmnd        *cmd;
+       void                    (*done)(struct scsi_cmnd *);
+};
+
 /**
  *     ata_scsi_rbuf_get - Map response buffer.
  *     @cmd: SCSI command containing buffer to be mapped.
index 1133e9439f9c537efe758565064ff18b32aae282..bba39a62552b6746d0b61f73be92878e0af11101 100644 (file)
 #define DRV_NAME       "libata"
 #define DRV_VERSION    "3.00"  /* must be exactly four chars */
 
-struct ata_scsi_args {
-       struct ata_device       *dev;
-       u16                     *id;
-       struct scsi_cmnd        *cmd;
-       void                    (*done)(struct scsi_cmnd *);
-};
-
 /* libata-core.c */
 enum {
        /* flags for ata_dev_read_id() */