From: Tony Cho Date: Mon, 21 Sep 2015 03:16:53 +0000 (+0900) Subject: staging: wilc1000: remove typedef from the struct tstrHostIfSetOperationMode X-Git-Tag: firefly_0821_release~176^2~802^2~1841 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=801bee52a111c1c6957480d14326cd6a579c6f55;p=firefly-linux-kernel-4.4.55.git 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 --- 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];