1. 29 Jun, 2015 3 commits
    • Milo Kim's avatar
      leds:lp55xx: fix firmware loading error · b6789320
      Milo Kim authored
      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: default avatarMilo Kim <milo.kim@ti.com>
      Acked-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
      b6789320
    • Jacek Anaszewski's avatar
      leds: fix max77693-led build errors · 10c19c9e
      Jacek Anaszewski authored
      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: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
      10c19c9e
    • Randy Dunlap's avatar
      leds: fix aat1290 build errors · 58d1809b
      Randy Dunlap authored
      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: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Acked-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
      Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
      58d1809b
  2. 22 Jun, 2015 7 commits
  3. 15 Jun, 2015 1 commit
  4. 10 Jun, 2015 1 commit
  5. 25 May, 2015 11 commits
  6. 04 May, 2015 13 commits
  7. 03 May, 2015 4 commits