Skip to contentSkip to conversation

staging: csr: Remove CsrEventHandle

PATCH In review SeongJae Park 2 participants 4 messages Oct 27, 2012 – Oct 30, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: csr: Remove CsrEventHandle

No one use CsrEventHandle, No one call functions using it as parameter. So those are not need to be here.

---
 drivers/staging/csr/csr_framework_ext.h       |   61 -------------------------
 drivers/staging/csr/csr_framework_ext_types.h |    2 -
 2 files changed, 63 deletions(-)
drivers/staging/csr/csr_framework_ext.h +0 -61
index 16635a9..f1295a1 100644
@@ -36,67 +36,6 @@ extern "C" {
 
 /*----------------------------------------------------------------------------*
  *  NAME
- *      CsrEventCreate
- *
- *  DESCRIPTION
- *      Creates an event and returns a handle to the created event.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS          in case of success
- *          CSR_FE_RESULT_NO_MORE_EVENTS   in case of out of event resources
- *          CSR_FE_RESULT_INVALID_POINTER  in case the eventHandle pointer is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrEventCreate(CsrEventHandle *eventHandle);
-
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrEventWait
- *
- *  DESCRIPTION
- *      Wait fore one or more of the event bits to be set.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS              in case of success
- *          CSR_FE_RESULT_TIMEOUT              in case of timeout
- *          CSR_FE_RESULT_INVALID_HANDLE       in case the eventHandle is invalid
- *          CSR_FE_RESULT_INVALID_POINTER      in case the eventBits pointer is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrEventWait(CsrEventHandle *eventHandle, u16 timeoutInMs, u32 *eventBits);
-
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrEventSet
- *
- *  DESCRIPTION
- *      Set an event.
- *
- *  RETURNS
- *      Possible values:
- *          CSR_RESULT_SUCCESS              in case of success
- *          CSR_FE_RESULT_INVALID_HANDLE       in case the eventHandle is invalid
- *
- *----------------------------------------------------------------------------*/
-CsrResult CsrEventSet(CsrEventHandle *eventHandle, u32 eventBits);
-
-/*----------------------------------------------------------------------------*
- *  NAME
- *      CsrEventDestroy
- *
- *  DESCRIPTION
- *      Destroy the event associated.
- *
- *  RETURNS
- *      void
- *
- *----------------------------------------------------------------------------*/
-void CsrEventDestroy(CsrEventHandle *eventHandle);
-
-/*----------------------------------------------------------------------------*
- *  NAME
  *      CsrMutexCreate
  *
  *  DESCRIPTION
drivers/staging/csr/csr_framework_ext_types.h +0 -2
index cd1f877..22340c2 100644
@@ -30,7 +30,6 @@ struct CsrEvent {
 	unsigned int      wakeup_flag;
 };
 
-typedef struct CsrEvent CsrEventHandle;
 typedef struct semaphore CsrMutexHandle;
 
 #else /* __KERNEL __ */
@@ -41,7 +40,6 @@ struct CsrEvent {
 	u32       eventBits;
 };
 
-typedef struct CsrEvent CsrEventHandle;
 typedef pthread_mutex_t CsrMutexHandle;
 
 #endif /* __KERNEL__ */
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 staging: csr: Remove struct CsrEvent

No one use struct CsrEvent. So it's unnecessary.

---
 drivers/staging/csr/csr_framework_ext_types.h |   12 ------------
 1 file changed, 12 deletions(-)
drivers/staging/csr/csr_framework_ext_types.h +0 -12
index 22340c2..7ad8720 100644
@@ -24,22 +24,10 @@ extern "C" {
 
 #ifdef __KERNEL__
 
-struct CsrEvent {
-	/* wait_queue for waking the kernel thread */
-	wait_queue_head_t wakeup_q;
-	unsigned int      wakeup_flag;
-};
-
 typedef struct semaphore CsrMutexHandle;
 
 #else /* __KERNEL __ */
 
-struct CsrEvent {
-	pthread_cond_t  event;
-	pthread_mutex_t mutex;
-	u32       eventBits;
-};
-
 typedef pthread_mutex_t CsrMutexHandle;
 
 #endif /* __KERNEL__ */
Signature · 1 line
1.7.9.5
maintainer
#2 lore raw
In reply to SeongJae Park
Quoted 8 lines · SeongJae Park

No one use CsrEventHandle, No one call functions using it as parameter. So those are not need to be here.

---
 drivers/staging/csr/csr_framework_ext.h       |   61 -------------------------
 drivers/staging/csr/csr_framework_ext_types.h |    2 -
 2 files changed, 63 deletions(-)

Sorry, but someone already did this. Look at the linux-next tree to see the patch there that cleaned up part of this. But, the second file you changed here still applies, so can you redo this, and the 2/2 patch and resend them?

thanks,

greg k-h

#3 lore raw

Sure, I will.

Actually, I sent new patch already :)

Quoted 20 lines · Greg KH
Quoted 9 lines · SeongJae Park

No one use CsrEventHandle, No one call functions using it as parameter. So those are not need to be here.

---
 drivers/staging/csr/csr_framework_ext.h       |   61
-------------------------
 drivers/staging/csr/csr_framework_ext_types.h |    2 -
 2 files changed, 63 deletions(-)

Sorry, but someone already did this. Look at the linux-next tree to see the patch there that cleaned up part of this. But, the second file you changed here still applies, so can you redo this, and the 2/2 patch and resend them?

thanks,

greg k-h