staging: rts5208: avoid new typedef in rtsx.h: rtsx_dev_t
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 23 Sep 2016 14:12:07 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Sep 2016 10:40:30 +0000 (12:40 +0200)
This patch fixes the following checkpatch.pl warning in rtsx.h:
WARNING: do not add new typedefs

It also remove DELAY_PARA_T because code is not using it.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.h
drivers/staging/rts5208/rtsx_chip.h

index 7a21e466a1b4df03ba6e0cca94c3b42c15fb879f..2de47197e07930e81bb404fa13c9c064c42f508e 100644 (file)
@@ -88,8 +88,6 @@ do {                                          \
 
 #define SCSI_LUN(srb)          ((srb)->device->lun)
 
-typedef unsigned long DELAY_PARA_T;
-
 struct rtsx_chip;
 
 struct rtsx_dev {
@@ -130,8 +128,6 @@ struct rtsx_dev {
        struct rtsx_chip        *chip;
 };
 
-typedef struct rtsx_dev rtsx_dev_t;
-
 /* Convert between rtsx_dev and the corresponding Scsi_Host */
 static inline struct Scsi_Host *rtsx_to_host(struct rtsx_dev *dev)
 {
index 132c2e6ca59e891eca16c057c7a0ae537a317024..6ef34fa2829b208d62835bf8a1d2df077b67f0b5 100644 (file)
@@ -683,7 +683,7 @@ struct trace_msg_t {
 #define CLR_SDIO_IGNORED(chip)         ((chip)->sdio_func_exist &= ~SDIO_IGNORED)
 
 struct rtsx_chip {
-       rtsx_dev_t      *rtsx;
+       struct rtsx_dev *rtsx;
 
        u32             int_reg; /* Bus interrupt pending register */
        char            max_lun;