Re: Backlight and LCD module patches [2]

From: Greg KH
Date: Fri Aug 13 2004 - 18:39:44 EST


On Sun, Jul 25, 2004 at 04:59:17PM -0500, John Lenz wrote:
> The problem I see is that we would like something like a bus to match
> together class devices. What would be really nice is something like
> this.
>
> struct class_match {
> struct class *class1;
> struct class *class2;
>
> int (*match)(struct class_device *dev1, struct class_device *dev2);
> };
>
> This class match structure would be very similar to a bus, in that it
> matches together two classes instead of matching a device to a driver.
> All the class code would have to do is call the match function for all
> possible combinations of class devices in class1 and in class2. If
> match returned true, then it would create symbolic links between the
> two.

Care to provide a proposed implementation of this functionality?

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/