From: Alexey Dobriyan <adobriyan@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH 8/15] FlashPoint: use standard fixed size types.
Date: Wed, 06 Jul 2005 23:07:05 +0000 [thread overview]
Message-ID: <200507070307.05993.adobriyan@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/scsi/FlashPoint.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
Index: linux-flashpoint/drivers/scsi/FlashPoint.c
===================================================================
--- linux-flashpoint.orig/drivers/scsi/FlashPoint.c 2005-07-06 23:47:18.000000000 +0400
+++ linux-flashpoint/drivers/scsi/FlashPoint.c 2005-07-06 23:50:22.000000000 +0400
@@ -44,13 +44,7 @@
-#define s08bits char
-#define s16bits short
-#define s32bits long
-
-#define u08bits unsigned s08bits
-#define u16bits unsigned s16bits
-#define u32bits unsigned s32bits
+
@@ -245,12 +239,12 @@ typedef struct _SCCB {
#define SG_ELEMENT_SIZE 8 /*Eight byte per element. */
-#define RD_HARPOON(ioport) inb((u32bits)ioport)
-#define RDW_HARPOON(ioport) inw((u32bits)ioport)
-#define RD_HARP32(ioport,offset,data) (data = inl((u32bits)(ioport + offset)))
-#define WR_HARPOON(ioport,val) outb((u08bits) val, (u32bits)ioport)
-#define WRW_HARPOON(ioport,val) outw((u16bits)val, (u32bits)ioport)
-#define WR_HARP32(ioport,offset,data) outl(data, (u32bits)(ioport + offset))
+#define RD_HARPOON(ioport) inb((u32)ioport)
+#define RDW_HARPOON(ioport) inw((u32)ioport)
+#define RD_HARP32(ioport,offset,data) (data = inl((u32)(ioport + offset)))
+#define WR_HARPOON(ioport,val) outb((u8) val, (u32)ioport)
+#define WRW_HARPOON(ioport,val) outw((u16)val, (u32)ioport)
+#define WR_HARP32(ioport,offset,data) outl(data, (u32)(ioport + offset))
#define TAR_SYNC_MASK (BIT(7)+BIT(6))
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
reply other threads:[~2005-07-06 23:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200507070307.05993.adobriyan@gmail.com \
--to=adobriyan@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.