27 Sep, 2020

1 commit


23 Jul, 2019

1 commit


19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

27 Jan, 2017

1 commit

  • gcc gets confused about the control flow in ktd2692_parse_dt(), causing
    it to warn about what seems like a potential bug:

    drivers/leds/leds-ktd2692.c: In function 'ktd2692_probe':
    drivers/leds/leds-ktd2692.c:244:15: error: '*((void *)&led_cfg+8)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    drivers/leds/leds-ktd2692.c:225:7: error: 'led_cfg.flash_max_microamp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    drivers/leds/leds-ktd2692.c:232:3: error: 'led_cfg.movie_max_microamp' may be used uninitialized in this function [-Werror=maybe-uninitialized]

    The code is fine, and slightly reworking it in an equivalent way lets
    gcc figure that out too, which gets rid of the warning.

    Fixes: 77e7915b15bb ("leds: ktd2692: Add missing of_node_put")
    Signed-off-by: Arnd Bergmann
    Acked-by: Pavel Machek
    Signed-off-by: Jacek Anaszewski

    Arnd Bergmann
     

04 Jan, 2016

3 commits

  • The refcount of device_node increases after of_node_get() is called.
    So, a break out of the loop requires of_node_put().

    This patch adds missing of_node_put() when loop breaks.

    Signed-off-by: Ingi Kim
    Acked-by: Rob Herring
    Signed-off-by: Jacek Anaszewski

    Ingi Kim
     
  • Now the core implements the work queue, remove it from the drivers,
    and switch to using brightness_set_blocking op.

    Signed-off-by: Jacek Anaszewski
    Cc: Ingi Kim
    Acked-by: Sakari Ailus
    Acked-by: Pavel Machek

    Jacek Anaszewski
     
  • The initial purpose of brightness_set_sync op, introduced along with
    the LED flash class extension, was to add a means for setting torch LED
    brightness as soon as possible, which couldn't have been guaranteed by
    brightness_set op. This patch renames the op to brightness_set_blocking,
    which describes its purpose in a more generic way. It is beneficial
    in view of the prospective changes in the LED core, aiming at removing
    the need for using work queues in LED class drivers that can sleep
    or use delays while setting brightness.

    Signed-off-by: Jacek Anaszewski
    Acked-by: Andrew Lunn
    Acked-by: Pavel Machek
    Acked-by: Sakari Ailus

    Jacek Anaszewski
     

17 Sep, 2015

1 commit


23 Jun, 2015

1 commit

  • Since 39b2bbe3d715 (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.

    In this case the driver cannot easily be simplified but as the flags
    parameter will become mandatory soon this change is necessary
    beforehand.

    Signed-off-by: Uwe Kleine-König
    Acked-by: Jacek Anaszewski
    Signed-off-by: Bryan Wu

    Uwe Kleine-König
     

26 May, 2015

1 commit

  • This patch adds a driver to support the ktd2692 flash LEDs.
    ktd2692 can control flash current by ExpressWire interface.

    Signed-off-by: Ingi Kim
    Acked-by: Seung-Woo Kim
    Reviewed-by: Varka Bhadram
    Acked-by: Jacek Anaszewski
    Signed-off-by: Bryan Wu

    Ingi Kim