From: Chad Williamson <chad@dahc.us>
To: gregkh@linuxfoundation.org
Cc: puff65537@bansheeslibrary.com, viro@zeniv.linux.org.uk,
tulinizer@gmail.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org, Chad Williamson <chad@dahc.us>
Subject: [PATCH 1/6] Staging: silicom: remove bp_media_type enum typedef
Date: Sun, 23 Jun 2013 02:02:23 -0500 [thread overview]
Message-ID: <1371970948-26802-2-git-send-email-chad@dahc.us> (raw)
In-Reply-To: <1371970948-26802-1-git-send-email-chad@dahc.us>
Remove the typedef for enum bp_media_type from bpctl_mod.c and
change its one use accordingly, resolving a checkpatch.pl warning.
Signed-off-by: Chad Williamson <chad@dahc.us>
---
drivers/staging/silicom/bpctl_mod.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c
index 31fd3d5..33e226d 100644
--- a/drivers/staging/silicom/bpctl_mod.c
+++ b/drivers/staging/silicom/bpctl_mod.c
@@ -52,12 +52,12 @@ if (down_interruptible(&bpctl_sema)) { \
up(&bpctl_sema);
/* Media Types */
-typedef enum {
+enum bp_media_type {
bp_copper = 0,
bp_fiber,
bp_cx4,
bp_none,
-} bp_media_type;
+};
struct bypass_pfs_sd {
char dir_name[32];
@@ -89,7 +89,7 @@ typedef struct _bpctl_dev {
uint32_t reset_time;
uint8_t bp_status_un;
atomic_t wdt_busy;
- bp_media_type media_type;
+ enum bp_media_type media_type;
int bp_tpl_flag;
struct timer_list bp_tpl_timer;
spinlock_t bypass_wr_lock;
--
1.8.1.4
next prev parent reply other threads:[~2013-06-23 7:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-23 7:02 [PATCH 0/6] Staging: silicom: Remove all typedefs from bpctl_mod.c Chad Williamson
2013-06-23 7:02 ` Chad Williamson [this message]
2013-06-23 7:02 ` [PATCH 2/6] Staging: silicom: capitalize labels in the bp_media_type enum Chad Williamson
2013-06-23 7:02 ` [PATCH 3/6] Staging: silicom: remove the bpctl_dev_t typdef Chad Williamson
2013-06-24 23:11 ` Greg KH
2013-06-23 7:02 ` [PATCH 4/6] Staging: silicom: remove the board_t typedef in bpctl_mod.c Chad Williamson
2013-06-23 7:02 ` [PATCH 5/6] Staging: silicom: remove the typedef for bpmod_info_t Chad Williamson
2013-06-23 7:02 ` [PATCH 6/6] Staging: silicom: remove typedef for dev_desc_t Chad Williamson
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=1371970948-26802-2-git-send-email-chad@dahc.us \
--to=chad@dahc.us \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=puff65537@bansheeslibrary.com \
--cc=tulinizer@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/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®