diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-06-29 15:27:38 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-06-29 15:27:38 -0700 |
commit | 88328d4ef007c781874aafedfef59aae0d21a37c (patch) | |
tree | 22567a5ee4d967382bc2793a5598a2f15094d853 /linux-core/xgi_fb.h | |
parent | 33b8476dfb0f9b5045103c3a9781ba82bcae4a9d (diff) |
Eliminate structure typedefs
Documentation/CodingStyle says that 'typedef struct foo foo_t' is
evil. I tend to agree. Elminate all uses of such construct.
Diffstat (limited to 'linux-core/xgi_fb.h')
-rw-r--r-- | linux-core/xgi_fb.h | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/linux-core/xgi_fb.h b/linux-core/xgi_fb.h index ae078ae0..363c8bc8 100644 --- a/linux-core/xgi_fb.h +++ b/linux-core/xgi_fb.h @@ -29,42 +29,19 @@ #ifndef _XGI_FB_H_ #define _XGI_FB_H_ -typedef struct xgi_mem_block_s { +struct xgi_mem_block { struct list_head list; unsigned long offset; unsigned long size; atomic_t use_count; -} xgi_mem_block_t; +}; -typedef struct xgi_mem_heap_s { +struct xgi_mem_heap { struct list_head free_list; struct list_head used_list; struct list_head sort_list; unsigned long max_freesize; spinlock_t lock; -} xgi_mem_heap_t; - -#if 0 -typedef struct xgi_mem_block_s { - struct xgi_mem_block_s *next; - struct xgi_mem_block_s *prev; - unsigned long offset; - unsigned long size; - atomic_t use_count; -} xgi_mem_block_t; - -typedef struct xgi_mem_list_s { - xgi_mem_block_t *head; - xgi_mem_block_t *tail; -} xgi_mem_list_t; - -typedef struct xgi_mem_heap_s { - xgi_mem_list_t *free_list; - xgi_mem_list_t *used_list; - xgi_mem_list_t *sort_list; - unsigned long max_freesize; - spinlock_t lock; -} xgi_mem_heap_t; -#endif +}; #endif |