Re: [PATCH] new driver for ITM Touch touchscreen

Alexey Dobriyan
2005-03-04T11:04:27Z

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

Alexey