Skip to content

Commit

Permalink
Staging: bcm: Remove typedef for stUserThreadReq and call directly.
Browse files Browse the repository at this point in the history
This patch removes typedef for stUserThreadReq,
and changes the name of the struct to bcm_user_thread_req.
In addition, any calls to typedefs USER_THREAD_REQ, or
*PUSER_THREAD_REQ are changed to call the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent ff4e065 commit d532703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/bcm/Bcmchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)
break;

case BCM_LED_THREAD_STATE_CHANGE_REQ: {
USER_THREAD_REQ threadReq = {0};
struct bcm_user_thread_req threadReq = {0};
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "User made LED thread InActive");

if ((Adapter->IdleMode == TRUE) ||
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/bcm/Ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ typedef struct stGPIOInfo {
unsigned int uiGpioValue; /* 1 set ; 0 not set */
} __packed GPIO_INFO, *PGPIO_INFO;

typedef struct stUserThreadReq {
struct bcm_user_thread_req {
/* 0->Inactivate LED thread. */
/* 1->Activate the LED thread */
unsigned int ThreadState;
} __packed USER_THREAD_REQ, *PUSER_THREAD_REQ;
} __packed;

#define LED_THREAD_ACTIVATION_REQ 1
#define BCM_IOCTL 'k'
Expand Down

0 comments on commit d532703

Please sign in to comment.