1. 26 5月, 2015 1 次提交
  2. 05 5月, 2015 7 次提交
  3. 31 3月, 2015 7 次提交
  4. 10 3月, 2015 2 次提交
  5. 04 3月, 2015 1 次提交
  6. 03 3月, 2015 1 次提交
    • U
      leds: lp8860: make use of devm_gpiod_get_optional · eb2294c3
      Uwe Kleine-König 提交于
      The probe function open coded a bad variant of devm_gpiod_get_optional
      using devm_gpiod_get and just ignoring all errors.
      In contrast to that devm_gpiod_get_optional returns NULL if there was no
      corresponding gpio specified in the device tree (or ACPI table) and
      fails if there is an error (or GPIOLIB is not enabled).
      
      Moreover since 39b2bbe3 (gpio: add flags argument to gpiod_get*()
      functions) which appeared in v3.17-rc1, the gpiod_get* functions take an
      additional parameter that allows to specify direction and initial value
      for output which allows some simplification.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      eb2294c3
  7. 25 2月, 2015 1 次提交
  8. 03 2月, 2015 1 次提交
  9. 27 1月, 2015 1 次提交
    • J
      leds: Add LED Flash class extension to the LED subsystem · 7aea8389
      Jacek Anaszewski 提交于
      Some LED devices support two operation modes - torch and flash.
      This patch provides support for flash LED devices in the LED subsystem
      by introducing new sysfs attributes and kernel internal interface.
      The attributes being introduced are: flash_brightness, flash_strobe,
      flash_timeout, max_flash_timeout, max_flash_brightness, flash_fault,
      flash_sync_strobe and available_sync_leds. All the flash related
      features are placed in a separate module.
      
      The modifications aim to be compatible with V4L2 framework requirements
      related to the flash devices management. The design assumes that V4L2
      sub-device can take of the LED class device control and communicate
      with it through the kernel internal interface. When V4L2 Flash sub-device
      file is opened, the LED class device sysfs interface is made
      unavailable.
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Acked-by: NKyungmin Park <kyungmin.park@samsung.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      7aea8389
  10. 15 1月, 2015 3 次提交
  11. 14 1月, 2015 1 次提交
    • S
      leds: netxbig: fix oops at probe time · 0c86ac2c
      Simon Guinot 提交于
      This patch fixes a NULL pointer dereference on led_dat->mode_val. Due to
      this bug, a kernel oops can be observed at probe time on the LaCie 2Big
      and 5Big v2 boards:
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000008
      [...]
      [<c03f244c>] (netxbig_led_probe) from [<c02c8c6c>] (platform_drv_probe+0x4c/0x9c)
      [<c02c8c6c>] (platform_drv_probe) from [<c02c72d0>] (driver_probe_device+0x98/0x25c)
      [<c02c72d0>] (driver_probe_device) from [<c02c7520>] (__driver_attach+0x8c/0x90)
      [<c02c7520>] (__driver_attach) from [<c02c5c24>] (bus_for_each_dev+0x68/0x94)
      [<c02c5c24>] (bus_for_each_dev) from [<c02c6408>] (bus_add_driver+0x124/0x1dc)
      [<c02c6408>] (bus_add_driver) from [<c02c7ac0>] (driver_register+0x78/0xf8)
      [<c02c7ac0>] (driver_register) from [<c000888c>] (do_one_initcall+0x80/0x1cc)
      [<c000888c>] (do_one_initcall) from [<c0733618>] (kernel_init_freeable+0xe4/0x1b4)
      [<c0733618>] (kernel_init_freeable) from [<c058db9c>] (kernel_init+0xc/0xec)
      [<c058db9c>] (kernel_init) from [<c0009850>] (ret_from_fork+0x14/0x24)
      [...]
      
      This bug was introduced by commit 588a6a99
      ("leds: netxbig: fix attribute-creation race").
      Signed-off-by: NSimon Guinot <simon.guinot@sequanux.org>
      Cc: <stable@vger.kernel.org> # 3.17+
      Acked-by: NJohan Hovold <johan@kernel.org>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      0c86ac2c
  12. 10 12月, 2014 1 次提交
  13. 04 12月, 2014 1 次提交
  14. 02 12月, 2014 1 次提交
  15. 20 11月, 2014 1 次提交
  16. 15 11月, 2014 5 次提交
  17. 07 11月, 2014 1 次提交
  18. 05 11月, 2014 3 次提交
  19. 20 10月, 2014 1 次提交