mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
[PATCH] Char: stallion, kill typedefs
Typedefs are considered ugly in the kernel. Eliminate them. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
615e4a71ec
commit
ca7ed0f22f
2 changed files with 238 additions and 242 deletions
File diff suppressed because it is too large
Load diff
|
@ -52,11 +52,11 @@
|
||||||
* protection - since "write" code only needs to change the head, and
|
* protection - since "write" code only needs to change the head, and
|
||||||
* interrupt code only needs to change the tail.
|
* interrupt code only needs to change the tail.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
struct stlrq {
|
||||||
char *buf;
|
char *buf;
|
||||||
char *head;
|
char *head;
|
||||||
char *tail;
|
char *tail;
|
||||||
} stlrq_t;
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Port, panel and board structures to hold status info about each.
|
* Port, panel and board structures to hold status info about each.
|
||||||
|
@ -67,7 +67,7 @@ typedef struct {
|
||||||
* is associated with, this makes it (fairly) easy to get back to the
|
* is associated with, this makes it (fairly) easy to get back to the
|
||||||
* board/panel info for a port.
|
* board/panel info for a port.
|
||||||
*/
|
*/
|
||||||
typedef struct stlport {
|
struct stlport {
|
||||||
unsigned long magic;
|
unsigned long magic;
|
||||||
int portnr;
|
int portnr;
|
||||||
int panelnr;
|
int panelnr;
|
||||||
|
@ -97,10 +97,10 @@ typedef struct stlport {
|
||||||
wait_queue_head_t close_wait;
|
wait_queue_head_t close_wait;
|
||||||
struct work_struct tqueue;
|
struct work_struct tqueue;
|
||||||
comstats_t stats;
|
comstats_t stats;
|
||||||
stlrq_t tx;
|
struct stlrq tx;
|
||||||
} stlport_t;
|
};
|
||||||
|
|
||||||
typedef struct stlpanel {
|
struct stlpanel {
|
||||||
unsigned long magic;
|
unsigned long magic;
|
||||||
int panelnr;
|
int panelnr;
|
||||||
int brdnr;
|
int brdnr;
|
||||||
|
@ -111,10 +111,10 @@ typedef struct stlpanel {
|
||||||
void (*isr)(struct stlpanel *panelp, unsigned int iobase);
|
void (*isr)(struct stlpanel *panelp, unsigned int iobase);
|
||||||
unsigned int hwid;
|
unsigned int hwid;
|
||||||
unsigned int ackmask;
|
unsigned int ackmask;
|
||||||
stlport_t *ports[STL_PORTSPERPANEL];
|
struct stlport *ports[STL_PORTSPERPANEL];
|
||||||
} stlpanel_t;
|
};
|
||||||
|
|
||||||
typedef struct stlbrd {
|
struct stlbrd {
|
||||||
unsigned long magic;
|
unsigned long magic;
|
||||||
int brdnr;
|
int brdnr;
|
||||||
int brdtype;
|
int brdtype;
|
||||||
|
@ -136,9 +136,9 @@ typedef struct stlbrd {
|
||||||
unsigned long clk;
|
unsigned long clk;
|
||||||
unsigned int bnkpageaddr[STL_MAXBANKS];
|
unsigned int bnkpageaddr[STL_MAXBANKS];
|
||||||
unsigned int bnkstataddr[STL_MAXBANKS];
|
unsigned int bnkstataddr[STL_MAXBANKS];
|
||||||
stlpanel_t *bnk2panel[STL_MAXBANKS];
|
struct stlpanel *bnk2panel[STL_MAXBANKS];
|
||||||
stlpanel_t *panels[STL_MAXPANELS];
|
struct stlpanel *panels[STL_MAXPANELS];
|
||||||
} stlbrd_t;
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue