提交 1f8ec435 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

[PATCH] Char: istallion, eliminate typedefs

Use only struct <name> instead of defining a new type <name_t>.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 a3f8d9d5
此差异已折叠。
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
* communication with the slave board will always be on a per port * communication with the slave board will always be on a per port
* basis. * basis.
*/ */
typedef struct { struct stliport {
unsigned long magic; unsigned long magic;
int portnr; int portnr;
int panelnr; int panelnr;
...@@ -72,7 +72,7 @@ typedef struct { ...@@ -72,7 +72,7 @@ typedef struct {
wait_queue_head_t close_wait; wait_queue_head_t close_wait;
wait_queue_head_t raw_wait; wait_queue_head_t raw_wait;
struct work_struct tqhangup; struct work_struct tqhangup;
asysigs_t asig; struct asysigs asig;
unsigned long addr; unsigned long addr;
unsigned long rxoffset; unsigned long rxoffset;
unsigned long txoffset; unsigned long txoffset;
...@@ -83,13 +83,13 @@ typedef struct { ...@@ -83,13 +83,13 @@ typedef struct {
unsigned char reqbit; unsigned char reqbit;
unsigned char portidx; unsigned char portidx;
unsigned char portbit; unsigned char portbit;
} stliport_t; };
/* /*
* Use a structure of function pointers to do board level operations. * Use a structure of function pointers to do board level operations.
* These include, enable/disable, paging shared memory, interrupting, etc. * These include, enable/disable, paging shared memory, interrupting, etc.
*/ */
typedef struct stlibrd { struct stlibrd {
unsigned long magic; unsigned long magic;
int brdnr; int brdnr;
int brdtype; int brdtype;
...@@ -116,8 +116,8 @@ typedef struct stlibrd { ...@@ -116,8 +116,8 @@ typedef struct stlibrd {
void __iomem *(*getmemptr)(struct stlibrd *brdp, unsigned long offset, int line); void __iomem *(*getmemptr)(struct stlibrd *brdp, unsigned long offset, int line);
void (*intr)(struct stlibrd *brdp); void (*intr)(struct stlibrd *brdp);
void (*reset)(struct stlibrd *brdp); void (*reset)(struct stlibrd *brdp);
stliport_t *ports[STL_MAXPORTS]; struct stliport *ports[STL_MAXPORTS];
} stlibrd_t; };
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册