Skip to content

Commit

Permalink
staging: csr: csr_framework_ext_types.h: fix coding style
Browse files Browse the repository at this point in the history
Fix coding style of csr_framework_ext_types.h
    
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
SeongJae Park authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 3f38ea7 commit cf174b0
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions drivers/staging/csr/csr_framework_ext_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#define CSR_FRAMEWORK_EXT_TYPES_H__
/*****************************************************************************
(c) Cambridge Silicon Radio Limited 2010
All rights reserved and confidential information of CSR
(c) Cambridge Silicon Radio Limited 2010
All rights reserved and confidential information of CSR
Refer to LICENSE.txt included with this source for details
on the license terms.
Refer to LICENSE.txt included with this source for details
on the license terms.
*****************************************************************************/

Expand All @@ -24,17 +24,15 @@ extern "C" {

#ifdef __KERNEL__

struct CsrThread
{
struct task_struct *thread_task;
char name[16];
struct CsrThread {
struct task_struct *thread_task;
char name[16];
};

struct CsrEvent
{
/* wait_queue for waking the kernel thread */
wait_queue_head_t wakeup_q;
unsigned int wakeup_flag;
struct CsrEvent {
/* wait_queue for waking the kernel thread */
wait_queue_head_t wakeup_q;
unsigned int wakeup_flag;
};

typedef struct CsrEvent CsrEventHandle;
Expand All @@ -43,11 +41,10 @@ typedef struct CsrThread CsrThreadHandle;

#else /* __KERNEL __ */

struct CsrEvent
{
pthread_cond_t event;
pthread_mutex_t mutex;
u32 eventBits;
struct CsrEvent {
pthread_cond_t event;
pthread_mutex_t mutex;
u32 eventBits;
};

typedef struct CsrEvent CsrEventHandle;
Expand Down

0 comments on commit cf174b0

Please sign in to comment.