From: Harald Welte <laforge@gnumonks.org>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Linux Kernel Mailinglist <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] New: Omnikey CardMan 4040 PCMCIA Driver
Date: Mon, 5 Sep 2005 12:30:44 +0200 [thread overview]
Message-ID: <20050905103044.GG20386@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <9a87484905090315273f9b7048@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3103 bytes --]
On Sun, Sep 04, 2005 at 12:27:20AM +0200, Jesper Juhl wrote:
> On 9/4/05, Harald Welte <laforge@gnumonks.org> wrote:
> > On Sun, Sep 04, 2005 at 12:12:18PM +0200, Harald Welte wrote:
> > > Hi!
> > >
> > > Below you can find a driver for the Omnikey CardMan 4040 PCMCIA
> > > Smartcard Reader.
> >
> > Sorry, the patch was missing a "cg-add" of the header file. Please use
> > the patch below.
>
> It would be so much nicer if the patch actually was "below" - that is
> "inline in the email as opposed to as an attachment". Having to first
> save an attachment and then cut'n'paste from it is a pain.
This is a neverending discussion. A number of kernel develpoers I know
prefer attachements these days. It's a matter of your email client, and
why it doesn't just append a "plaintext" attachment at the bottom of
your mail and rather display you the "save as" icon/button/whatever.
> Anyway, a few comments below :
>
> +#define DEBUG(n, x, args...) do { if (pc_debug >= (n)) \
>
>
> line longer than 80 chars. Please adhere to CodingStyle and keep lines
> <80 chars.
The line is _not_ longer than 80 chars, at least not if you remove the
"+" from the beginning of the patch and you hve 8 chars wide
> There's more than one occourance of this.
there was one occurrence in the file which I have missed, thanks.
> +static inline int cmx_waitForBulkOutReady(reader_dev_t *dev)
>
>
> Why TheStudlyCaps ? Please keep function names lowercase. There are
> more instances of this, only pointing out one.
Yes, there are. My initial idea was to diverge as little as possible
from the original vendor driver, making it easy to pull in changes from
their tree in the future, should it be neccessarry.
However, it has diverged that much now, it doesn't really matter whether
I also rename the functions, too. Please stay tuned for the next
revision of the patch.
> Please use only tabs for indentation (line 1 of the above is indented
> with spaces).
thanks, should have catched all of them now.
> lowercase prefered also for variables.
done
> Space after ","s please : DEBUG(5, "cmx_waitForBulkInReady rc=%.2x\n", rc);
done
> get rid of the space before the opening paren :
> static int cmx_open(struct inode *inode, struct file *filp)
done
> How about not having to indent so deep by rewriting that as
done
> + cmx_poll_timer.function = &cmx_do_poll;
>
> shouldn't this be
> cmx_poll_timer.function = cmx_do_poll;
> ???
I don't really know what difference it would make. My understanding of
'c' is that both cases would take the address of the function.
My personal taste is rather to explicitly indicate this with an '&' than
let the compiler implicitly take the address.
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-09-05 10:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-04 10:12 Harald Welte
2005-09-03 21:27 ` Chase Venters
2005-09-03 22:13 ` Nish Aravamudan
2005-09-03 22:23 ` Chase Venters
2005-09-04 7:33 ` Harald Welte
2005-09-04 11:20 ` Harald Welte
2005-09-06 16:15 ` Roland Dreier
2005-09-06 17:11 ` Harald Welte
2005-09-03 21:56 ` Alexey Dobriyan
2005-09-04 7:10 ` Harald Welte
2005-09-04 11:08 ` Harald Welte
2005-09-03 22:27 ` Jesper Juhl
2005-09-04 21:06 ` Horst von Brand
2005-09-04 22:10 ` Jesper Juhl
2005-09-05 10:30 ` Harald Welte [this message]
2005-09-04 12:58 ` Ingo Oeser
2005-09-05 9:14 ` Harald Welte
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=20050905103044.GG20386@sunbeam.de.gnumonks.org \
--to=laforge@gnumonks.org \
--cc=jesper.juhl@gmail.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®