Re: [PATCH] new driver for ITM Touch touchscreen

From: Alexey Dobriyan
Date: Fri Mar 04 2005 - 06:11:54 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/