diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2016-09-23 16:12:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-25 12:40:30 +0200 |
commit | 8e7e0a96926ddaeb518e57b8a7e1042b7ce5e60a (patch) | |
tree | 86c9224caed1d1cf264366d9617a1c24a50dfec5 /drivers/staging/rts5208 | |
parent | c529e31ff67f52b86a68e13e5e07252918d14b05 (diff) | |
download | linux-8e7e0a96926ddaeb518e57b8a7e1042b7ce5e60a.tar.gz linux-8e7e0a96926ddaeb518e57b8a7e1042b7ce5e60a.tar.bz2 linux-8e7e0a96926ddaeb518e57b8a7e1042b7ce5e60a.zip |
staging: rts5208: avoid new typedef in rtsx.h: rtsx_dev_t
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>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r-- | drivers/staging/rts5208/rtsx.h | 4 | ||||
-rw-r--r-- | drivers/staging/rts5208/rtsx_chip.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rts5208/rtsx.h b/drivers/staging/rts5208/rtsx.h index 7a21e466a1b4..2de47197e079 100644 --- a/drivers/staging/rts5208/rtsx.h +++ b/drivers/staging/rts5208/rtsx.h @@ -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) { diff --git a/drivers/staging/rts5208/rtsx_chip.h b/drivers/staging/rts5208/rtsx_chip.h index 132c2e6ca59e..6ef34fa2829b 100644 --- a/drivers/staging/rts5208/rtsx_chip.h +++ b/drivers/staging/rts5208/rtsx_chip.h @@ -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; |