ata: sata_dwc_460ex: correct HOSTDEV{P}_FROM_*() macros
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Apr 2016 09:03:13 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 10 May 2016 16:29:19 +0000 (12:29 -0400)
Here we refactor HOSTDEV{P}_FROM_*() macros to fit one line and fix the
definition of HSDEV_FROM_HSDEVP() where wrong name of the parameter waas used.

Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c

index 24837d6fbe80638132d599a48e5001d05c2b2d3a..2258baf126cd95b25cffcb129027660ced2c3d9a 100644 (file)
@@ -168,18 +168,13 @@ struct sata_dwc_device_port {
 };
 
 /*
- * Commonly used DWC SATA driver Macros
+ * Commonly used DWC SATA driver macros
  */
-#define HSDEV_FROM_HOST(host)  ((struct sata_dwc_device *)\
-                                       (host)->private_data)
-#define HSDEV_FROM_AP(ap)  ((struct sata_dwc_device *)\
-                                       (ap)->host->private_data)
-#define HSDEVP_FROM_AP(ap)   ((struct sata_dwc_device_port *)\
-                                       (ap)->private_data)
-#define HSDEV_FROM_QC(qc)      ((struct sata_dwc_device *)\
-                                       (qc)->ap->host->private_data)
-#define HSDEV_FROM_HSDEVP(p)   ((struct sata_dwc_device *)\
-                                               (hsdevp)->hsdev)
+#define HSDEV_FROM_HOST(host)  ((struct sata_dwc_device *)(host)->private_data)
+#define HSDEV_FROM_AP(ap)      ((struct sata_dwc_device *)(ap)->host->private_data)
+#define HSDEVP_FROM_AP(ap)     ((struct sata_dwc_device_port *)(ap)->private_data)
+#define HSDEV_FROM_QC(qc)      ((struct sata_dwc_device *)(qc)->ap->host->private_data)
+#define HSDEV_FROM_HSDEVP(p)   ((struct sata_dwc_device *)(p)->hsdev)
 
 enum {
        SATA_DWC_CMD_ISSUED_NOT         = 0,
This page took 0.026447 seconds and 5 git commands to generate.