Re: [INPUT] simple question on driver initialisation.

From: Vojtech Pavlik
Date: Tue Jul 26 2005 - 06:03:23 EST


On Tue, Jul 26, 2005 at 12:23:40PM +0200, moreau francis wrote:

> I'm currently developping a very simple driver for a pinpad by using
> Input module. I'm using Event handler to pass events from pinpad to userland.
> In this simple case, I'm wondering if I really need to initialise
> "phys" field in in "input_dev" struct before calling "input_register_device".

Yes, it is required.

> What is this field for ?

It is intended for identifying the device based on "location" in the
system.

--
Vojtech Pavlik
SuSE Labs, SuSE CR
-
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/