Skip to content

Commit

Permalink
Staging: Clean up sxg driver
Browse files Browse the repository at this point in the history
Lindent the rest of the files in drivers/staging/sxg

Signed off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
J.R. Mauro authored and Greg Kroah-Hartman committed Oct 22, 2008
1 parent 2ae5a6d commit bc36e65
Show file tree
Hide file tree
Showing 4 changed files with 368 additions and 379 deletions.
41 changes: 17 additions & 24 deletions drivers/staging/sxg/sxg_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#define FALSE (0)
#define TRUE (1)


typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *nle_flink;
struct _LIST_ENTRY *nle_blink;
Expand All @@ -69,35 +68,32 @@ typedef struct _LIST_ENTRY {

/* These two have to be inlined since they return things. */

static __inline PLIST_ENTRY
RemoveHeadList(list_entry *l)
static __inline PLIST_ENTRY RemoveHeadList(list_entry * l)
{
list_entry *f;
list_entry *e;
list_entry *f;
list_entry *e;

e = l->nle_flink;
f = e->nle_flink;
l->nle_flink = f;
f->nle_blink = l;
e = l->nle_flink;
f = e->nle_flink;
l->nle_flink = f;
f->nle_blink = l;

return (e);
return (e);
}

static __inline PLIST_ENTRY
RemoveTailList(list_entry *l)
static __inline PLIST_ENTRY RemoveTailList(list_entry * l)
{
list_entry *b;
list_entry *e;
list_entry *b;
list_entry *e;

e = l->nle_blink;
b = e->nle_blink;
l->nle_blink = b;
b->nle_flink = l;
e = l->nle_blink;
b = e->nle_blink;
l->nle_blink = b;
b->nle_flink = l;

return (e);
return (e);
}


#define InsertTailList(l, e) \
do { \
list_entry *b; \
Expand All @@ -120,7 +116,6 @@ RemoveTailList(list_entry *l)
(l)->nle_flink = (e); \
} while (0)


#define ATK_DEBUG 1

#if ATK_DEBUG
Expand All @@ -133,7 +128,6 @@ RemoveTailList(list_entry *l)
#define SLIC_TIMESTAMP(value)
#endif


/****************** SXG DEFINES *****************************************/

#ifdef ATKDBG
Expand All @@ -150,5 +144,4 @@ RemoveTailList(list_entry *l)
#define WRITE_REG64(a,reg,value,cpu) sxg_reg64_write((a),(&reg),(value),(cpu))
#define READ_REG(reg,value) (value) = readl((void __iomem *)(&reg))

#endif /* _SLIC_OS_SPECIFIC_H_ */

#endif /* _SLIC_OS_SPECIFIC_H_ */
Loading

0 comments on commit bc36e65

Please sign in to comment.