staging: wilc1000: remove typedef from the struct tstrHostIfSetOperationMode
authorTony Cho <tony.cho@atmel.com>
Mon, 21 Sep 2015 03:16:53 +0000 (12:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 06:00:27 +0000 (23:00 -0700)
This patch removes typedef from the struct tstrHostIfSetOperationMode
and renames it to op_mode in order to comply with the Linux coding
style.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index 05f8db9e44d6643c1e381e03a24ac0e202ea5acb..68df96bc3634dfb3af9a9090e72f8645396ca758 100644 (file)
@@ -433,7 +433,7 @@ union message_body {
        struct set_ip_addr strHostIfSetIP;
        struct drv_handler strHostIfSetDrvHandler;
        struct set_multicast strHostIfSetMulti;
-       tstrHostIfSetOperationMode strHostIfSetOperationMode;
+       struct op_mode strHostIfSetOperationMode;
        tstrHostIfSetMacAddress strHostIfSetMacAddress;
        tstrHostIfGetMacAddress strHostIfGetMacAddress;
        tstrHostIfBASessionInfo strHostIfBASessionInfo;
@@ -708,7 +708,8 @@ static s32 Handle_SetWfiDrvHandler(tstrWILC_WFIDrv *drvHandler,
  *  @date
  *  @version   1.0
  */
-static s32 Handle_SetOperationMode(tstrWILC_WFIDrv *drvHandler, tstrHostIfSetOperationMode *pstrHostIfSetOperationMode)
+static s32 Handle_SetOperationMode(tstrWILC_WFIDrv *drvHandler,
+                                  struct op_mode *pstrHostIfSetOperationMode)
 {
 
        s32 s32Error = 0;
index dc6fe73707c867a7e163f4ecd5f11ea1c17cce6f..101e51f1920d0d0fda3bfede0d084885ff2d8f24 100644 (file)
@@ -259,9 +259,9 @@ struct drv_handler {
        u32 u32Address;
 };
 
-typedef struct {
+struct op_mode {
        u32 u32Mode;
-} tstrHostIfSetOperationMode;
+};
 
 typedef struct {
        u8 u8MacAddress[ETH_ALEN];