From: "Jiri Slaby" <xslaby@fi.muni.cz>
To: Shaun Jackman <sjackman@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Liyitec PS/2 touch panel driver [PATCH]
Date: Wed, 1 Feb 2006 02:03:57 +0100 [thread overview]
Message-ID: <20060201010355.D5D6D22AEF3@anxur.fi.muni.cz> (raw)
In-Reply-To: <7f45d9390601311459o45de3c34sd4d25fc7990c728d@mail.gmail.com>
>Shaun Jackman wrote:
>I've written an input driver for the Liyitec PS/2 touch panel. The
>patch follows. As this is my first input driver, I'd appreciate any
>feedback.
>
>Please cc me in your reply. Cheers,
>Shaun
[snip]
>+static irqreturn_t liyitec_interrupt(struct serio *serio,
>+ unsigned char data, unsigned int flags, struct pt_regs *regs)
>+{
>+ struct liyitec *liyitec = serio_get_drvdata(serio);
>+
>+ if (liyitec->count < 0) {
>+ if (data != LIYITEC_RET_ACK)
>+ printk(KERN_DEBUG "liyitec: expected ACK: 0x%02x\n", data);
>+ } else
>+ liyitec->data[liyitec->count] = data;
>+ liyitec->count++;
>+
>+ if (liyitec->count == 1 && !(data & LIYITEC_SYNC)) {
>+ printk(KERN_DEBUG "liyitec: unsynchronized data: 0x%02x\n", data);
It would be great to use dev_*() rather than printks.
dev_dbg(&serio->dev, "unsynchronized data: 0x%02x\n", data);
for instance.
regards,
--
Jiri Slaby www.fi.muni.cz/~xslaby
~\-/~ jirislaby@gmail.com ~\-/~
B67499670407CE62ACC8 22A032CC55C339D47A7E
next prev parent reply other threads:[~2006-02-01 1:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 22:59 Shaun Jackman
2006-02-01 0:22 ` Alexey Dobriyan
2006-02-02 0:50 ` Shaun Jackman
2006-02-01 1:03 ` Jiri Slaby [this message]
2006-02-02 0:52 ` Shaun Jackman
2006-02-01 4:20 ` Dmitry Torokhov
2006-02-02 1:00 ` Shaun Jackman
2006-02-02 23:11 ` Shaun Jackman
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=20060201010355.D5D6D22AEF3@anxur.fi.muni.cz \
--to=xslaby@fi.muni.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=sjackman@gmail.com \
/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®