staging: wilc1000: move struct Message and WILC_MsgQueueHandle
authorChaehyun Lim <chaehyun.lim@gmail.com>
Wed, 23 Sep 2015 09:03:45 +0000 (18:03 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 00:38:30 +0000 (02:38 +0200)
This patch moves struct Message and WILC_MsgQueueHandle from
wilc_platform.h to wilc_msgqueue.h because those two structures are used
only at wilc_msgqueue.c so that it is good to be defined at
wilc_msgqueue.h

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_msgqueue.h
drivers/staging/wilc1000/wilc_platform.h

index a3c0bba2cc88666c48392d413c0db75e710f1f0e..982628e570a3962b1a2b6066d5da3c38a1402ff8 100644 (file)
 
 #include "wilc_platform.h"
 
+/* Message Queue type is a structure */
+typedef struct __Message_struct {
+       void *pvBuffer;
+       u32 u32Length;
+       struct __Message_struct *pstrNext;
+} Message;
+
+typedef struct __MessageQueue_struct {
+       struct semaphore hSem;
+       spinlock_t strCriticalSection;
+       bool bExiting;
+       u32 u32ReceiversCount;
+       Message *pstrMessageList;
+} WILC_MsgQueueHandle;
+
 /*!
  *  @brief             Creates a new Message queue
  *  @details           Creates a new Message queue, if the feature
index b7636167f4730ccb806e16ced25043008f29eaff..6ec1aa34617e7e3c2a2f63f11d45ffb0b9cba637 100644 (file)
  *      OS specific types
  *******************************************************************/
 
-/* Message Queue type is a structure */
-typedef struct __Message_struct {
-       void *pvBuffer;
-       u32 u32Length;
-       struct __Message_struct *pstrNext;
-} Message;
-
-typedef struct __MessageQueue_struct {
-       struct semaphore hSem;
-       spinlock_t strCriticalSection;
-       bool bExiting;
-       u32 u32ReceiversCount;
-       Message *pstrMessageList;
-} WILC_MsgQueueHandle;