Skip to content

Commit

Permalink
Staging: silicom: remove bp_media_type enum typedef
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chad Williamson authored and Greg Kroah-Hartman committed Jun 24, 2013
1 parent 26f3561 commit ff2e54c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/silicom/bpctl_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ff2e54c

Please sign in to comment.