LED devices

Daniel Stone daniel.stone at nokia.com
Fri Jun 1 07:08:30 PDT 2007


On Fri, Jun 01, 2007 at 01:59:35PM +0100, ext Richard Purdie wrote:
> On Fri, 2007-06-01 at 13:36 +0100, Richard Hughes wrote:
> > On Fri, 2007-06-01 at 13:18 +0100, Richard Purdie wrote:
> > > On Fri, 2007-06-01 at 13:04 +0100, Richard Hughes wrote:
> > > Several reasons:
> > > 
> > > * I want to keep the names descriptive (which is allowed afaict)
> > 
> > Then we can use apple_power_on, thinkpad_charging, logitech_low_power.
> > The colour of the led is not always the best descriptor.
> 
> Agreed, which is why I've said I'll accept some optional notion of
> function in the name by extending the API as discussed previously.
> 
> Of course by your own argument we'll have to provide a property
> attribute for that too since conveying that information in the name only
> isn't allowed.

Depends.  As a platform device, the bus ID for LEDs is often extremely
arbitrary, and 'charging' is a far better descriptor than
'led:green'.  It's a name, rather than a property.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20070601/0041d789/attachment.pgp 


More information about the hal mailing list