lkml.org 
[lkml]   [2004]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Backlight and LCD module patches [2]
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.187 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site