Commit 1328d737 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

[PATCH] Char: istallion, variables cleanup

- wipe gcc -W warnings by int -> uint conversion
- move 2 global variables into their local place
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1f8ec435
This diff is collapsed.
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
*/ */
struct stliport { struct stliport {
unsigned long magic; unsigned long magic;
int portnr; unsigned int portnr;
int panelnr; unsigned int panelnr;
int brdnr; unsigned int brdnr;
unsigned long state; unsigned long state;
int devnr; unsigned int devnr;
int flags; int flags;
int baud_base; int baud_base;
int custom_divisor; int custom_divisor;
...@@ -91,23 +91,23 @@ struct stliport { ...@@ -91,23 +91,23 @@ struct stliport {
*/ */
struct stlibrd { struct stlibrd {
unsigned long magic; unsigned long magic;
int brdnr; unsigned int brdnr;
int brdtype; unsigned int brdtype;
int state; unsigned int state;
int nrpanels; unsigned int nrpanels;
int nrports; unsigned int nrports;
int nrdevs; unsigned int nrdevs;
unsigned int iobase; unsigned int iobase;
int iosize; int iosize;
unsigned long memaddr; unsigned long memaddr;
void __iomem *membase; void __iomem *membase;
int memsize; unsigned long memsize;
int pagesize; int pagesize;
int hostoffset; int hostoffset;
int slaveoffset; int slaveoffset;
int bitsize; int bitsize;
int enabval; int enabval;
int panels[STL_MAXPANELS]; unsigned int panels[STL_MAXPANELS];
int panelids[STL_MAXPANELS]; int panelids[STL_MAXPANELS];
void (*init)(struct stlibrd *brdp); void (*init)(struct stlibrd *brdp);
void (*enable)(struct stlibrd *brdp); void (*enable)(struct stlibrd *brdp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment