diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-03-24 06:18:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:29 -0500 |
commit | 00d83a54aa824b11ebc8c66c4a879cfeb5029a22 (patch) | |
tree | c4d13bb89b7ee082439ae75a5c1ee2d9da52c3c4 /drivers/char/rio/rio.h | |
parent | e2b3afd676ad3e15ca2efca3b3605c7d817ec6e3 (diff) |
[PATCH] rio driver rework continued #3
Second large chunk of code cleanup. The split between this and #3 and #4 is
fairly arbitary and due to the message length limit on the list. These
patches continue the process of ripping out macros and typedefs while cleaning
up lots of 32bit assumptions. Several inlines for compatibility also get
removed and that causes a lot of noise.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/rio/rio.h')
-rw-r--r-- | drivers/char/rio/rio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/rio/rio.h b/drivers/char/rio/rio.h index 7f45e1ab5332..2d466ffe112d 100644 --- a/drivers/char/rio/rio.h +++ b/drivers/char/rio/rio.h | |||
@@ -186,8 +186,8 @@ static char *_rio_h_sccs_ = "@(#)rio.h 1.3"; | |||
186 | ** RIO_OBJ takes hostp->Caddr and a UNIX pointer to an object and | 186 | ** RIO_OBJ takes hostp->Caddr and a UNIX pointer to an object and |
187 | ** returns the offset into the DP RAM area. | 187 | ** returns the offset into the DP RAM area. |
188 | */ | 188 | */ |
189 | #define RIO_PTR(C,O) (((caddr_t)(C))+(0xFFFF&(O))) | 189 | #define RIO_PTR(C,O) (((unsigned char *)(C))+(0xFFFF&(O))) |
190 | #define RIO_OFF(C,O) ((int)(O)-(int)(C)) | 190 | #define RIO_OFF(C,O) ((long)(O)-(long)(C)) |
191 | 191 | ||
192 | /* | 192 | /* |
193 | ** How to convert from various different device number formats: | 193 | ** How to convert from various different device number formats: |