1. 09 12月, 2018 1 次提交
  2. 27 10月, 2018 1 次提交
  3. 11 9月, 2018 1 次提交
  4. 30 8月, 2017 1 次提交
  5. 09 3月, 2017 1 次提交
  6. 05 2月, 2017 1 次提交
  7. 26 1月, 2017 2 次提交
  8. 15 9月, 2016 7 次提交
  9. 11 7月, 2016 1 次提交
    • R
      leds: leds-gpio: Set of_node for created LED devices · bff23714
      Rafał Miłecki 提交于
      When working with Device Tree we iterate over children of "gpio-leds"
      compatible node and create LED device for each of them. We take care of
      all common DT properties (label, default trigger, state, etc.), however
      some triggers may want to support more of them.
      
      It could be useful for timer trigger to support setting delay on/off
      values with Device Tree property. Or for transient trigger to support
      e.g. duration property.
      
      We obviously should handle such properties in triggers, not in generic
      code. To let trigger drivers read properties from DT node we need to set
      of_node to point the relevant node. This change allows using all kind of
      of helpers in e.g. "activate" callbacks.
      Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      bff23714
  10. 06 5月, 2016 1 次提交
  11. 14 3月, 2016 2 次提交
  12. 04 1月, 2016 1 次提交
  13. 03 11月, 2015 1 次提交
  14. 25 6月, 2015 1 次提交
  15. 26 5月, 2015 1 次提交
  16. 05 5月, 2015 2 次提交
  17. 04 3月, 2015 1 次提交
  18. 03 2月, 2015 1 次提交
  19. 10 12月, 2014 1 次提交
  20. 04 12月, 2014 1 次提交
  21. 07 11月, 2014 1 次提交
  22. 05 11月, 2014 3 次提交
  23. 20 10月, 2014 1 次提交
  24. 30 9月, 2014 2 次提交
  25. 07 3月, 2014 1 次提交
  26. 28 2月, 2014 2 次提交
  27. 26 10月, 2013 1 次提交
    • J
      leds-gpio: of: led should not be created if its status is disabled · b0bb83df
      Josh Wu 提交于
      now the leds-gpio driver will create every child led node without
      checking the status is disabled or not.
      
      for example, if we have a led node like d3, and its status is disabled:
      	leds {
      		d3 {
      			label = "d3";
      			gpios = <&pioE 24 0>;
      			status = "disabled";
      		};
      	};
      
      we except the d3 should not be created. And the gpios should not be
      request as well.
      
      But current driver will create d3 and request its gpio.
      
      This patch fix this by using for_each_available_child_of_node() and
      of_get_available_child_count() to enumerate all child nodes. So the
      disabled node will be inavailable.
      Signed-off-by: NJosh Wu <josh.wu@atmel.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      b0bb83df