From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Jiri Slaby <xslaby@fi.muni.cz>
Cc: Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH2 2/6] isicom: Type conversion and variables deletion
Date: Mon, 10 Oct 2005 18:27:24 +0100 [thread overview]
Message-ID: <1128965244.11234.38.camel@localhost.localdomain> (raw)
In-Reply-To: <20051009194201.2E69222AEAC@anxur.fi.muni.cz>
On Sul, 2005-10-09 at 21:42 +0200, Jiri Slaby wrote:
> Type conversion and variables deletion
>
> Type which is needed to have accurate size was converted to [us]{8,16}.
> Removed from void* cast.
> static unsigned char *tmp_buf;
> -static DECLARE_MUTEX(tmp_buf_sem);
Unrelated change
> - unsigned char isa;
> + u16 base;
> + u8 irq;
> + u8 port_count;
> + u16 status;
> + u16 port_status; /* each bit for each port */
> + u16 shift_count;
> + struct isi_port *ports;
> + s8 count;
> + u8 isa;
These don't need to be changed and base should in fact be unsigned long
for portability.
> spinlock_t card_lock; /* Card wide lock 11/5/00 -sameer */
> unsigned long flags;
> };
>
> struct isi_port {
> - unsigned short magic;
> + u16 magic;
Ditto
> - port->xmit_buf = (unsigned char *) page;
> + port->xmit_buf = (u8*) page;
tty buffers are specifically unsigned char
next prev parent reply other threads:[~2005-10-10 16:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-09 19:39 [PATCH2 0/6] isicom char driver rewritten to 2.6 api Jiri Slaby
2005-10-09 19:41 ` [PATCH2 1/6] isicom: Whitespace cleanup Jiri Slaby
2005-10-09 19:42 ` [PATCH2 2/6] isicom: Type conversion and variables deletion Jiri Slaby
2005-10-10 17:27 ` Alan Cox [this message]
2005-10-09 19:42 ` [PATCH2 3/6] isicom: Other little changes Jiri Slaby
2005-10-09 19:42 ` [PATCH2 4/6] isicom: Pci probing added Jiri Slaby
2005-10-10 14:57 ` Greg KH
2005-10-09 19:42 ` [PATCH2 5/6] isicom: Firmware loading Jiri Slaby
2005-10-09 19:42 ` [PATCH2 6/6] isicom: More whitespaces and coding style Jiri Slaby
2005-10-10 4:05 ` Dmitry Torokhov
[not found] ` <4af2d03a0510100250r58fb24f1l1067bf5ad54bb659@mail.gmail.com>
2005-10-10 14:54 ` Dmitry Torokhov
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=1128965244.11234.38.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xslaby@fi.muni.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox