lkml.org 
[lkml]   [2005]   [Nov]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 3 Nov 2005 07:21:13 +0100
FromRobert Schwebel <>
SubjectRe: best way to handle LEDs
On Wed, Nov 02, 2005 at 08:52:41PM -0600, John Lenz wrote:
> Except the led code that is being proposed CAN sit on top of a generic
> GPIO layer.  If a generic GPIO layer is created, you can create a led
> driver that calls out to that GPIO layer.
> 
> You just need to fill in the following functions with some that raise and
> lower the GPIO on the correct line....
> 
> int (*color_get)(struct device *, struct led_properties *props);
> void (*color_set)(struct device *, struct led_properties *props, int value);
> 
> int (*brightness_get)(struct device *, struct led_properties *props);
> void (*brightness_set)(struct device *, struct led_properties *props, int
> value);

Ok, great! I'll see that I update my patch for 2.6.14. 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9
-
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-11-03 07:23    [from the cache]
©2003-2008