Skip to content

Commit

Permalink
staging: rtl8723bs: remove typedefs in drv_types.h
Browse files Browse the repository at this point in the history
This commit fixes the following checkpatch.pl warning:

    WARNING: do not add new typedefs
    torvalds#374: FILE: include/drv_types.h:374:
    +typedef enum _DRIVER_STATE {

Signed-off-by: Marco Cesati <marco.cesati@gmail.com>
Link: https://lore.kernel.org/r/20210312082638.25512-13-marco.cesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Marco Cesati authored and gregkh committed Mar 12, 2021
1 parent 84e4a52 commit 7fa19d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8723bs/include/drv_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,11 @@ enum ADAPTER_TYPE {
MAX_ADAPTER = 0xFF,
};

typedef enum _DRIVER_STATE {
enum DRIVER_STATE {
DRIVER_NORMAL = 0,
DRIVER_DISAPPEAR = 1,
DRIVER_REPLACE_DONGLE = 2,
} DRIVER_STATE;
};

struct adapter {
int DriverState;/* for disable driver using module, use dongle to replace module. */
Expand Down

0 comments on commit 7fa19d0

Please sign in to comment.