Re: Input sysbsystema and hotplug
From: Greg KH
Date: Mon Jun 13 2005 - 18:34:45 EST
On Mon, Jun 13, 2005 at 04:38:08PM -0500, Dmitry Torokhov wrote:
> On Monday 13 June 2005 16:26, Kay Sievers wrote:
> > On Mon, Jun 13, 2005 at 04:07:51PM -0500, Dmitry Torokhov wrote:
> > >
> > > where inputX are class devices, mouse and event are subclasses of input
> > > class and mouseX and eventX are again class devices.
> >
> > We don't support childs of class devices until now. Would be nice maybe, but
> > someone needs to add that to the driver-core first and we would need to make
> > a bunch of userspace stuff aware of it ...
> >
>
> Something like patch below will suffice I think (not tested).
No, you need to increment the parent when you register the child. Look
at the device code for what's needed for this.
thanks,
greg k-h
-
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/