1. 11 9月, 2012 1 次提交
  2. 24 7月, 2012 5 次提交
    • B
      leds: fix sparse warnings due to missing static · 20c0e6b8
      Bryan Wu 提交于
      drivers/leds/led-core.c:56:6: sparse: symbol 'led_blink_setup' was not declared. Should it be static?
      drivers/leds/led-triggers.c:233:6: sparse: symbol 'led_trigger_blink_setup' was not declared. Should it be static?
      Reported-by: NFengguang Wu <wfg@linux.intel.com>
      Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
      20c0e6b8
    • S
      leds: Rename led_brightness_set() to led_set_brightness() · 19cd67e2
      Shuah Khan 提交于
      Rename leds external interface led_brightness_set() to led_set_brightness().
      This is the second phase of the change to reduce confusion between the
      leds internal and external interfaces that set brightness. With this change,
      now the external interface is led_set_brightness(). The first phase renamed
      the internal interface led_set_brightness() to __led_set_brightness().
      There are no changes to the interface implementations.
      Signed-off-by: NShuah Khan <shuahkhan@gmail.com>
      Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
      19cd67e2
    • S
      leds: Rename led_set_brightness() to __led_set_brightness() · 0da3e65b
      Shuah Khan 提交于
      Rename leds internal interface led_set_brightness() to __led_set_brightness()
      to reduce confusion between led_set_brightness() and the external interface
      led_brightness_set(). led_brightness_set() cancels the timer and then calls
      led_set_brightness().
      Signed-off-by: NShuah Khan <shuahkhan@gmail.com>
      Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
      0da3e65b
    • F
      leds: fix led_brightness_set when soft-blinking · 43786482
      Fabio Baltieri 提交于
      Move led_stop_software_blink() code into led_brightness_set() to ensure
      software blink timer is stopped and cleared when changing trigger.
      
      Also use led_set_brightness() instead of calling
      led_cdev->brightness_set() directly to keep led_cdev->brightness
      consistent with current LED status.
      
      This ensure proper cleaning when changing triggers, as without this fix
      a LED may be turned off while leaving it's led_cdev->brightness = 1,
      leading to an erratic software-blink behaviour.
      
      The problem was easy to reproduce by changing the trigger from "timer"
      to "oneshot".
      Signed-off-by: NFabio Baltieri <fabio.baltieri@gmail.com>
      Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
      43786482
    • F
      leds: add oneshot blink functions · 5bb629c5
      Fabio Baltieri 提交于
      Add two new functions, led_blink_set_oneshot and
      led_trigger_blink_oneshot, to be used by triggers for one-shot blink of
      led devices.
      
      This is implemented extending the existing software-blink code, and uses
      the same timer and handler function.
      
      The behavior of the code is to do a blink-on, blink-off sequence when
      the function is called, ignoring other calls until the sequence is
      completed so that the leds keep blinking at constant rate if the
      functions are called repeatedly.
      
      This is meant to be used by drivers which needs to trigger on sporadic
      event, but doesn't have clear busy/idle trigger points.
      
      After the blink sequence the led remains off. This behavior can be
      inverted setting the "invert" argument, which blink the led off, than on
      and leave the led on after the sequence.
      
      (bryan.wu@canonical.com: rebase to commit 'leds: don't disable blinking
      when writing the same value to delay_on or delay_off')
      Signed-off-by: NFabio Baltieri <fabio.baltieri@gmail.com>
      Acked-by: NShuah Khan <shuahkhan@gmail.com>
      Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
      5bb629c5
  3. 12 6月, 2012 1 次提交
  4. 24 3月, 2012 1 次提交
  5. 25 4月, 2008 1 次提交
  6. 01 1月, 2008 1 次提交
  7. 28 6月, 2006 1 次提交
  8. 01 4月, 2006 1 次提交