1. 08 4月, 2009 1 次提交
    • L
      Fix build errors due to CONFIG_BRANCH_TRACER=y · aeeae868
      Linus Torvalds 提交于
      The code that enables branch tracing for all (non-constant) branches
      plays games with the preprocessor and #define's the C 'if ()' construct
      to do tracing.
      
      That's all fine, but it fails for some unusual but valid C code that is
      sometimes used in macros, notably by the intel-iommu code:
      
      	if (i=drhd->iommu, drhd->ignored) ..
      
      because now the preprocessor complains about multiple arguments to the
      'if' macro.
      
      So make the macro expansion of this particularly horrid trick use
      varargs, and handle the case of comma-expressions in if-statements.  Use
      another macro to do it cleanly in just one place.
      
      This replaces a patch by David (and acked by Steven) that did this all
      inside that one already-too-horrid macro.
      Tested-by: NIngo Molnar <mingo@elte.hu>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      aeeae868
  2. 07 4月, 2009 38 次提交
  3. 06 4月, 2009 1 次提交
    • K
      leds: add BD2802GU LED driver · 0b56129b
      Kim Kyuwon 提交于
      ROHM BD2802GU is a RGB LED controller attached to i2c bus and specifically
      engineered for decoration purposes.  This RGB controller incorporates
      lighting patterns and illuminates.
      
      This driver is designed to minimize power consumption, so when there is no
      emitting LED, it enters to reset state.  And because the BD2802GU has lots
      of features that can't be covered by the current LED framework, it
      provides Advanced Configuration Function(ADF) mode, so that user
      applications can set registers of BD2802GU directly.
      
      Here are basic usage examples :
      ; to turn on LED (not blink)
      $ echo 1 > /sys/class/leds/led1_R/brightness
      ; to blink LED
      $ echo timer > /sys/class/leds/led1_R/trigger
      $ echo 1 > /sys/class/leds/led1_R/delay_on
      $ echo 1 > /sys/class/leds/led1_R/delay_off
      ; to turn off LED
      $ echo 0 > /sys/class/leds/led1_R/brightness
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NKim Kyuwon <chammoru@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
      0b56129b