Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ba89554 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: rename struct WILC_MsgQueueHandle



This patch removes typedef from struct WILC_MsgQueueHandle and renames
it to struct message_queue.

Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 33561161
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ static struct host_if_drv *terminated_handle;
bool wilc_optaining_ip;
static u8 P2P_LISTEN_STATE;
static struct task_struct *hif_thread_handler;
static WILC_MsgQueueHandle hif_msg_q;
static struct message_queue hif_msg_q;
static struct semaphore hif_sema_thread;
static struct semaphore hif_sema_driver;
static struct semaphore hif_sema_wait_response;
+7 −7
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
 *  @note		copied from FLO glue implementatuion
 *  @version		1.0
 */
int wilc_mq_create(WILC_MsgQueueHandle *pHandle)
int wilc_mq_create(struct message_queue *pHandle)
{
	spin_lock_init(&pHandle->strCriticalSection);
	sema_init(&pHandle->hSem, 0);
@@ -27,7 +27,7 @@ int wilc_mq_create(WILC_MsgQueueHandle *pHandle)
 *  @note		copied from FLO glue implementatuion
 *  @version		1.0
 */
int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle)
int wilc_mq_destroy(struct message_queue *pHandle)
{
	pHandle->bExiting = true;

@@ -53,7 +53,7 @@ int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle)
 *  @note		copied from FLO glue implementatuion
 *  @version		1.0
 */
int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
int wilc_mq_send(struct message_queue *pHandle,
		 const void *pvSendBuffer, u32 u32SendBufferSize)
{
	unsigned long flags;
@@ -110,7 +110,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
 *  @note		copied from FLO glue implementatuion
 *  @version		1.0
 */
int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
int wilc_mq_recv(struct message_queue *pHandle,
		 void *pvRecvBuffer, u32 u32RecvBufferSize,
		 u32 *pu32ReceivedLength)
{
+9 −9
Original line number Diff line number Diff line
@@ -19,13 +19,13 @@ struct message {
	struct message *next;
};

typedef struct __MessageQueue_struct {
struct message_queue {
	struct semaphore hSem;
	spinlock_t strCriticalSection;
	bool bExiting;
	u32 u32ReceiversCount;
	struct message *pstrMessageList;
} WILC_MsgQueueHandle;
};

/*!
 *  @brief		Creates a new Message queue
@@ -40,7 +40,7 @@ typedef struct __MessageQueue_struct {
 *  @date		30 Aug 2010
 *  @version		1.0
 */
int wilc_mq_create(WILC_MsgQueueHandle *pHandle);
int wilc_mq_create(struct message_queue *pHandle);

/*!
 *  @brief		Sends a message
@@ -57,7 +57,7 @@ int wilc_mq_create(WILC_MsgQueueHandle *pHandle);
 *  @date		30 Aug 2010
 *  @version		1.0
 */
int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
int wilc_mq_send(struct message_queue *pHandle,
		 const void *pvSendBuffer, u32 u32SendBufferSize);

/*!
@@ -76,7 +76,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
 *  @date		30 Aug 2010
 *  @version		1.0
 */
int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
int wilc_mq_recv(struct message_queue *pHandle,
		 void *pvRecvBuffer, u32 u32RecvBufferSize,
		 u32 *pu32ReceivedLength);

@@ -89,6 +89,6 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
 *  @date		30 Aug 2010
 *  @version		1.0
 */
int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle);
int wilc_mq_destroy(struct message_queue *pHandle);

#endif