All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Pilcher <arequipeno@gmail.com>
To: linux-leds@vger.kernel.org
Subject: Registering GPIO LEDs
Date: Wed, 07 Aug 2013 17:51:03 -0500	[thread overview]
Message-ID: <ktuj0g$qci$1@ger.gmane.org> (raw)

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.
========================================================================


             reply	other threads:[~2013-08-07 22:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07 22:51 Ian Pilcher [this message]
2013-08-09  2:08 ` Registering GPIO LEDs Kim, Milo
2013-08-09  3:51   ` Ian Pilcher
2013-08-09  5:26     ` Kim, Milo
2013-08-13 23:35       ` Ian Pilcher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ktuj0g$qci$1@ger.gmane.org' \
    --to=arequipeno@gmail.com \
    --cc=linux-leds@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.