summaryrefslogtreecommitdiffstats
path: root/drivers/staging/silicom
diff options
context:
space:
mode:
authorChad Williamson <chad@dahc.us>2013-06-23 02:02:23 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-24 16:10:03 -0700
commitff2e54cd618bc70852696800d38500246e3ba28b (patch)
tree09ca33ee5908bc4b78d1aa163d6a3605c8dde07c /drivers/staging/silicom
parent26f3561db708efa91e005b8837fb3e49c17b424f (diff)
downloadlinux-ff2e54cd618bc70852696800d38500246e3ba28b.tar.gz
linux-ff2e54cd618bc70852696800d38500246e3ba28b.tar.bz2
linux-ff2e54cd618bc70852696800d38500246e3ba28b.zip
Staging: silicom: remove bp_media_type enum typedef
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/silicom')
-rw-r--r--drivers/staging/silicom/bpctl_mod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c
index 99a9f4d8da68..e1cc321aacdb 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;