LED devices

Greg KH greg at kroah.com
Fri Jun 1 05:20:34 PDT 2007


On Thu, May 31, 2007 at 09:26:25AM +0100, Richard Purdie wrote:
> On Thu, 2007-05-31 at 00:24 -0700, Greg KH wrote:
> > > The first contains no useful information, the second one is only
> > > fractionally better, the third is actually quite useful. Faced with the
> > > third name, a person can actually point to the right LED on the device.
> > 
> > So?  You need to read the attributes in the sysfs device directory to
> > find out exactly what type of device this is, what it does, and all
> > sorts of other information.
> > 
> > The first two examples above are correct.  They use a "bus id" type
> > naming scheme, like ALL OTHER DEVICES IN THE KERNEL.  The only
> > requirement is that it is unique.
> 
> So as long as the name is unique, a class can use whatever naming scheme
> it likes?

Within reason, yes.  I view the proposed naming scheme as not reasonable
though :)

> If any information in the name also appears as an attribute, that would
> be acceptable?

Why "also"?

thanks,

greg k-h


More information about the hal mailing list