From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alexey Dobriyan <adobriyan@mail.ru>
Cc: Hans-Christian Egtvedt <hc@mivu.no>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] new driver for ITM Touch touchscreen
Date: Fri, 4 Mar 2005 09:52:42 -0500 [thread overview]
Message-ID: <d120d50005030406525896b6cb@mail.gmail.com> (raw)
In-Reply-To: <200503041403.37137.adobriyan@mail.ru>
On Fri, 4 Mar 2005 14:03:37 +0200, Alexey Dobriyan <adobriyan@mail.ru> wrote:
> On Friday 04 March 2005 12:30, Hans-Christian Egtvedt wrote:
>
> > I've ported the works from Chris Collins so the drivers compiles without
> > warnings and works (for me) with Linux 2.6.10 and 2.6.11.
>
> > Any comments on the driver would be much appreciated.
>
> > +struct itmtouch_dev {
>
> > + int refcount; //
>
> There is already generic interface for reference-counted objects. See
> lib/kref.c and kref documentation at:
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=110987233406767&w=2
>
... which is absolutely unusable for this particular purpose - the
touchscreen object is not going away when refcount is 0. The variable
shoudl be renamed to "users" or something. Moreover it needs locking.
Anyway, all of this will be handled by the input core very shortly so
it can be left as is for now.
As far as the driver goes:
- yes, it does need input_sync;
- I prefer using input_set_abs_params instead of setting mix, max,
flat and fuzz for each axis manually;
- I believe "/* .. */" is preferred over "//"
- kill the commented out bad prototypes.
Also, is there a way to query the screen for actual size?
--
Dmitry
next prev parent reply other threads:[~2005-03-04 14:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-04 10:30 [PATCH] new driver for ITM Touch touchscreen Hans-Christian Egtvedt
2005-03-04 12:03 ` Alexey Dobriyan
2005-03-04 14:52 ` Dmitry Torokhov [this message]
2005-03-04 16:20 ` Hans-Christian Egtvedt
2005-03-04 16:54 ` Dmitry Torokhov
2005-03-04 18:51 ` Hans-Christian Egtvedt
2005-03-04 20:38 ` Vojtech Pavlik
2005-03-04 20:35 ` Vojtech Pavlik
2005-03-08 16:01 ` Hans-Christian Egtvedt
2005-03-08 17:25 ` Dmitry Torokhov
2005-03-08 17:49 ` Vojtech Pavlik
2005-03-08 18:23 ` Paulo Marques
2005-03-10 16:18 ` Vojtech Pavlik
2005-03-10 16:41 ` Hans-Christian Egtvedt
2005-03-10 16:46 ` Vojtech Pavlik
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=d120d50005030406525896b6cb@mail.gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=adobriyan@mail.ru \
--cc=dtor_core@ameritech.net \
--cc=hc@mivu.no \
--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