From: Domen Puncer <domen@coderock.org>
To: Stephen Evanchik <evanchsa@gmail.com>
Cc: Vojtech Pavlik <vojtech@suse.cz>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.11-rc3] IBM Trackpoint support
Date: Sun, 6 Feb 2005 21:17:21 +0100 [thread overview]
Message-ID: <20050206201721.GA14111@nd47.coderock.org> (raw)
In-Reply-To: <a71293c20502031443764fb4e5@mail.gmail.com>
I'm a bit late, sorry. Haven't seen these mentioned in replies:
On 03/02/05 17:43 -0500, Stephen Evanchik wrote:
> +int tp_sens = TP_DEF_SENS;
> +module_param_named(sens, tp_sens, uint, 0);
> +MODULE_PARM_DESC(sens, "Sensitivity");
I don't see out-of-file usages... these could be static.
...
> + static int name(char* page, char** start, off_t off, int count, int*
> eof, void* data) \
> + { \
> + int len; \
> + struct psmouse *psmouse = (struct psmouse *)data; \
> + struct trackpoint_data *tp = (struct trackpoint_data*)psmouse->private; \
No need to cast (void *).
...
> +static int scroll_write_func(struct file *file, const char __user
> *buffer, unsigned long count, void *data)
> +{
> + int len = count;
> + unsigned char tmp[5];
> + struct psmouse *psmouse = (struct psmouse *)data;
> + struct trackpoint_data *tp = (struct trackpoint_data*)psmouse->private;
> + if(count > sizeof(tmp) - 1)
> + len = sizeof(tmp) - 1;
How about: len = min(count, sizeof(tmp) - 1);?
...
> +no_ext_dev:
Nitpick:
Some like ' ' before label (makes diff -pu patches more readable)
Domen
prev parent reply other threads:[~2005-02-06 20:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 22:43 [PATCH 2.6.11-rc3] IBM Trackpoint support Stephen Evanchik
2005-02-04 0:34 ` Dmitry Torokhov
2005-02-04 3:52 ` Dmitry Torokhov
2005-02-04 4:39 ` Stephen Evanchik
2005-02-13 19:13 ` Stephen Evanchik
2005-02-13 19:31 ` Vojtech Pavlik
2005-02-13 20:31 ` Stephen Evanchik
2005-02-13 23:50 ` Dmitry Torokhov
2005-02-04 6:35 ` Vojtech Pavlik
2005-02-04 6:46 ` Fabio Massimo Di Nitto
2005-02-04 6:52 ` Dmitry Torokhov
2005-02-04 6:54 ` Vojtech Pavlik
2005-02-04 14:17 ` Dmitry Torokhov
2005-02-04 14:45 ` Vojtech Pavlik
2005-02-05 6:56 ` Dmitry Torokhov
2005-02-05 12:24 ` Vojtech Pavlik
2005-02-04 13:17 ` Stephen Evanchik
2005-02-04 13:45 ` Vojtech Pavlik
2005-02-04 14:12 ` Dmitry Torokhov
2005-02-05 10:44 ` Pavel Machek
2005-02-07 10:14 ` Vojtech Pavlik
2005-02-13 19:07 ` Stephen Evanchik
2005-02-13 19:13 ` Vojtech Pavlik
2005-02-06 20:17 ` Domen Puncer [this message]
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=20050206201721.GA14111@nd47.coderock.org \
--to=domen@coderock.org \
--cc=evanchsa@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.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