Re: [PATCH] Add LED driven by multiple gpio.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dmitry,

First of all, please don't send patches as attachments but use
git send-email on each of them.

Regarding the driver - if the LEDs are not driven by some LED controller
device, then this patch fits better for GPIO subsystem IMO.

On 04/25/2016 10:14 AM, Dmitry Bondar wrote:
Hello, on our board we have one LED with 2 gpio connected to it:
  - when gpio0 is on and gpio1 on - LED is orange.
  - when gpio0 is on and gpio1 off - LED is green.
  - when gpio0 is off and gpio1 on - LED is red.
  - when gpio0 is off and gpio1 off - LED is off.
We want use led_trigger (nand-disk) on this LED.
Below patch which we use for get one LED on 2 gpios.
Can be this in mainline, or may be exist other - better way?



--
Best regards,
Jacek Anaszewski
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux