From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
To: gregkh@linuxfoundation.org
Cc: bhumirks@gmail.com, jrickertkc@gmail.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/8 V2] staging: rts5208: avoid new typedef in rtsx.h: rtsx_dev_t
Date: Fri, 23 Sep 2016 16:12:07 +0200 [thread overview]
Message-ID: <1474639934-16494-2-git-send-email-sergio.paracuellos@gmail.com> (raw)
In-Reply-To: <1474639934-16494-1-git-send-email-sergio.paracuellos@gmail.com>
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>
---
drivers/staging/rts5208/rtsx.h | 4 ----
drivers/staging/rts5208/rtsx_chip.h | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/staging/rts5208/rtsx.h b/drivers/staging/rts5208/rtsx.h
index 7a21e46..2de4719 100644
--- a/drivers/staging/rts5208/rtsx.h
+++ b/drivers/staging/rts5208/rtsx.h
@@ -88,8 +88,6 @@
#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 132c2e6..6ef34fa 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;
--
1.9.1
next prev parent reply other threads:[~2016-09-23 14:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 14:12 [PATCH 0/8 V2] staging: rts5208: Fix several style warnings Sergio Paracuellos
2016-09-23 14:12 ` Sergio Paracuellos [this message]
2016-09-23 14:12 ` [PATCH 2/8 V2] staging: rts5208: avoid symbolic permissions in rtsx.c Sergio Paracuellos
2016-09-23 14:12 ` [PATCH 3/8 V2] staging: rts5208: fix comment blocks style in rtsx_chip.h Sergio Paracuellos
2016-09-23 14:12 ` [PATCH 4/8 V2] staging: rts5208: fix comment blocks style in rtsx.h Sergio Paracuellos
2016-09-23 14:12 ` [PATCH 5/8 V2] staging: rts5208: remove not used typedef in rtsx_sys.h Sergio Paracuellos
2016-09-23 14:12 ` [PATCH 6/8 V2] staging: rts5208: fix line style warnings in spi.c Sergio Paracuellos
2016-09-23 14:12 ` [PATCH 7/8 V2] staging: rts5208: fix style warnings in sd.c Sergio Paracuellos
2016-09-23 14:12 ` [PATCH 8/8 V2] staging: rts5208: fix style warnings in xd.c Sergio Paracuellos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1474639934-16494-2-git-send-email-sergio.paracuellos@gmail.com \
--to=sergio.paracuellos@gmail.com \
--cc=bhumirks@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=jrickertkc@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®