1. 02 4月, 2013 2 次提交
    • K
      leds: lp55xx: configure the clock detection · 81f2a5b4
      Kim, Milo 提交于
      Now LP55xx provides automatic clock detection API, lp55xx_is_extclk_used().
      The clock configuration can be done by the driver itself.
      
      (a) Concept
      The default value is set by each driver with clock selection.
      The internal clock selection bit is updated in case that the external clock
      is not detected or clock rate is not 32KHz.
      
      (b) Change on LP55xx platform data
      The clock configuration is done automatically, so no need to define
      'update_config' in the platform side.
      Correlated information are removed in the documentations and header.
      
      (c) Definitions moved from header to driver files
      CONFIG register values are moved each driver, LP5521 and LP5562.
      Not necessary definitions are removed also.
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      81f2a5b4
    • K
      leds: lp55xx: fix the sysfs read operation · 24d32128
      Kim, Milo 提交于
      According to a sysfs documentation(Documentation/filesystem/sysfs.txt),
      scnprintf() should be used in a read operation method.
      It guarantees safe buffer size(PAGE_SIZE) which is allocated by the sysfs.
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      24d32128
  2. 07 2月, 2013 28 次提交
  3. 04 12月, 2012 1 次提交
  4. 29 11月, 2012 3 次提交
  5. 27 11月, 2012 2 次提交
  6. 24 7月, 2012 1 次提交
  7. 30 5月, 2012 1 次提交
    • D
      drivers/leds/leds-lp5521.c: fix lp5521_read() error handling · 5bc9ad77
      Dan Carpenter 提交于
      Gcc 4.6.2 complains that:
      
        drivers/leds/leds-lp5521.c: In function `lp5521_load_program':
        drivers/leds/leds-lp5521.c:214:21: warning: `mode' may be used uninitialized in this function [-Wuninitialized]
        drivers/leds/leds-lp5521.c: In function `lp5521_probe':
        drivers/leds/leds-lp5521.c:788:5: warning: `buf' may be used uninitialized in this function [-Wuninitialized]
        drivers/leds/leds-lp5521.c:740:6: warning: `ret' may be used uninitialized in this function [-Wuninitialized]
      
      These are real problems if lp5521_read() returns an error.  When that
      happens we should handle it, instead of ignoring it or doing a bitwise
      OR with all the other error codes and continuing.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Cc: Milo <Milo.Kim@ti.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Bryan Wu <bryan.wu@canonical.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5bc9ad77
  8. 24 3月, 2012 2 次提交