1. 30 6月, 2015 3 次提交
    • M
      leds:lp55xx: fix firmware loading error · b6789320
      Milo Kim 提交于
      LP55xx driver uses not firmware file but raw data to load program through
      the firmware interface.(Documents/leds/leds-lp55xx.txt)
      
        For example, here is how to run blinking green channel pattern.
        (The second engine is seleted and MUX is mapped to 'RGB' mode)
        echo 2 > /sys/bus/i2c/devices/xxxx/select_engine
        echo "RGB" > /sys/bus/i2c/devices/xxxx/engine_mux
        echo 1 > /sys/class/firmware/lp5562/loading
        echo "4000600040FF6000" > /sys/class/firmware/lp5562/data
        echo 0 > /sys/class/firmware/lp5562/loading
        echo 1 > /sys/bus/i2c/devices/xxxx/run_engine
      
      However, '/sys/class/firmware/<device name>' is not created after the
      firmware loader user helper was introduced.
      This feature is used in the case below.
      
        As soon as the firmware download is requested by the driver, firmware
        class subsystem tries to find the binary file.
        If it gets failed, then it just falls back to user helper to load
        raw data manually. Here, you can see the device file under
        /sys/class/firmware/.
      
      To make it happen, LP55xx driver requires two configurations.
      
        1. Enable CONFIG_FW_LOADER_USER_HELPER_FALLBACK in Kconfig
        2. Set option, 'FW_OPT_USERHELPER' on requesting the firmware data.
           It means the second option should be 'false' in
           request_firmware_nowait().
           This option enables to load firmware data manually by calling
           fw_load_from_user_helper().
      
      Cc: linux-leds@vger.kernel.org
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      b6789320
    • J
      leds: fix max77693-led build errors · 10c19c9e
      Jacek Anaszewski 提交于
      Fix build errors when LEDS_MAX77693=y and V4L2_FLASH_LED_CLASS=m
      by restricting LEDS_MAX77693 to =m if V4L2_FLASH_LED_CLASS=m.
      
      drivers/leds/leds-max77693.c:1062: undefined reference to `v4l2_flash_release'
      drivers/leds/leds-max77693.c:1068: undefined reference to `v4l2_flash_release'
      drivers/built-in.o: In function `max77693_register_led':
      drivers/leds/leds-max77693.c:968: undefined reference to `v4l2_flash_init'
      drivers/built-in.o: In function `max77693_led_probe':
      drivers/leds/leds-max77693.c:1048: undefined reference to `v4l2_flash_release'
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      10c19c9e
    • R
      leds: fix aat1290 build errors · 58d1809b
      Randy Dunlap 提交于
      Fix build errors when LEDS_AAT1290=y and V4L2_FLASH_LED_CLASS=m
      by restricting LEDS_AAT1290 to =m if V4L2_FLASH_LED_CLASS=m.
      
      drivers/built-in.o: In function `aat1290_led_remove':
      leds-aat1290.c:(.text+0xe5d77): undefined reference to `v4l2_flash_release'
      drivers/built-in.o: In function `aat1290_led_probe':
      leds-aat1290.c:(.text+0xe6494): undefined reference to `v4l2_flash_init'
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Acked-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      58d1809b
  2. 23 6月, 2015 1 次提交
  3. 12 6月, 2015 1 次提交
  4. 26 5月, 2015 3 次提交
  5. 05 5月, 2015 4 次提交
  6. 31 3月, 2015 1 次提交
  7. 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
  8. 02 12月, 2014 1 次提交
  9. 20 11月, 2014 1 次提交
  10. 26 9月, 2014 1 次提交
  11. 24 9月, 2014 1 次提交
  12. 09 9月, 2014 1 次提交
  13. 24 7月, 2014 1 次提交
  14. 09 7月, 2014 1 次提交
  15. 11 5月, 2014 1 次提交
  16. 08 5月, 2014 1 次提交
  17. 15 4月, 2014 1 次提交
    • V
      HID: thingm: refactor blink(1) support · f70ed8a6
      Vivien Didelot 提交于
      This patch refactors the way the thingm driver registers a blink(1) LED.
      In order to make the driver simpler and more standard, drop the "rgb"
      sysfs attribute and create one instance of LED class per RGB channel.
      
      Actually, the name of the LED class instance registered for a blink(1)
      device is "blink1::ABCD", where ABCD is the last 4 chars of the serial
      number. The driver now registers 3 instances per RGB chip, named
      "thingmX:{red,green,blue}:ledY" where X is the hidraw minor number and Y
      is the RGB chip number (as seen by the firmware).
      
      This patch also uses work queues to defer calls with the device, which
      now allows triggers to work as expected with this LED device.
      
      Also remove the brightness structure field and the brightness_get
      backend, as it is already handled by the LED class, and changes the
      prefix of functions and structures to thingm_ to match the driver name.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f70ed8a6
  18. 28 3月, 2014 1 次提交
  19. 12 3月, 2014 1 次提交
  20. 28 2月, 2014 1 次提交
  21. 25 2月, 2014 1 次提交
  22. 23 10月, 2013 1 次提交
  23. 27 8月, 2013 5 次提交
  24. 22 7月, 2013 1 次提交
  25. 21 6月, 2013 1 次提交
  26. 16 4月, 2013 1 次提交
  27. 02 4月, 2013 2 次提交
    • K
      leds: move LED trigger drivers into new subdirectory · f07fb521
      Kim, Milo 提交于
      For better driver management, new subdirectory, 'trigger' is created.
      All LED trigger drivers are moved into this directory.
      
      Internal header, 'leds.h' is included in each LED trigger drivers.
      Fix the location of header file, "leds.h" -> "../leds.h" in driver files.
      One exception is here, 'ledtrig-timer.c'.
      There is no need to include 'leds.h'. so '#include "leds.h"' line was removed.
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      f07fb521
    • K
      leds: add new LP5562 LED driver · ff45262a
      Kim, Milo 提交于
      LP5562 can drive up to 4 channels, RGB and White.
      LEDs can be controlled directly via the led class control interface.
      
       LP55xx common driver
        LP5562 is one of LP55xx family device, so LP55xx common code are used.
        On the other hand, chip specific configuration is defined in the structure
        'lp55xx_device_config'
      
       LED pattern data
        LP5562 has also internal program memory which is used for running various LED
        patterns. LP5562 driver supports the firmware interface and the predefined
        pattern data as well.
      
       LP5562 device attributes: 'led_pattern' and 'engine_mux'
        A 'led_pattern' is an index code which runs the predefined pattern data.
        And 'engine_mux' is updated with the firmware interface is activated.
        Detailed description has been updated in the documentation files,
        'leds-lp55xx.txt' and 'leds-lp5562.txt'.
      
       Changes on the header file
        LP5562 configurable definitions are added.
        Pattern RGB data is fixed as constant value.
        (No side effect on other devices, LP5521 or LP5523.)
      
      (cooloney@gmail.com: remove redundant mutex_unlock(). Reported by Dan
      Carpenter <dan.carpenter@oracle.com>)
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Signed-off-by: NBryan Wu <cooloney@gmail.com>
      ff45262a
  28. 07 2月, 2013 1 次提交