linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Registering GPIO LEDs
@ 2013-08-07 22:51 Ian Pilcher
  2013-08-09  2:08 ` Kim, Milo
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Pilcher @ 2013-08-07 22:51 UTC (permalink / raw)
  To: linux-leds

I've discovered that it's quite simple to control the drive activity
LEDs on my Thecus N5550 with the standard gpio_ich module.  AFAIK, this
means that I should be able to use them with the leds_gpio module.  I
just need to register them.

I've found this page that gives an example:

  http://fabiobaltieri.com/2011/09/21/linux-led-subsystem/

I'm confused, however, about the .gpio member of the struct gpio_led.
I'm guessing that it's the GPIO number, but (at least in the case of
gpio_ich) that number can vary depending on the base number for that
chip.

Am I missing something?

Thanks!

-- 
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-13 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07 22:51 Registering GPIO LEDs Ian Pilcher
2013-08-09  2:08 ` Kim, Milo
2013-08-09  3:51   ` Ian Pilcher
2013-08-09  5:26     ` Kim, Milo
2013-08-13 23:35       ` Ian Pilcher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).