From 801bee52a111c1c6957480d14326cd6a579c6f55 Mon Sep 17 00:00:00 2001 From: Tony Cho Date: Mon, 21 Sep 2015 12:16:53 +0900 Subject: [PATCH] staging: wilc1000: remove typedef from the struct tstrHostIfSetOperationMode 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/host_interface.c | 5 +++-- drivers/staging/wilc1000/host_interface.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 05f8db9e44d6..68df96bc3634 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -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; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index dc6fe73707c8..101e51f1920d 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -259,9 +259,9 @@ struct drv_handler { u32 u32Address; }; -typedef struct { +struct op_mode { u32 u32Mode; -} tstrHostIfSetOperationMode; +}; typedef struct { u8 u8MacAddress[ETH_ALEN]; -- 2.30.2