01 Oct, 2020

1 commit


27 Sep, 2020

2 commits

  • Do the parsing of `linux,default-trigger` DT property to LED core.
    Currently it is done in many different drivers and the code is repeated.

    This patch removes the parsing from 23 drivers:
    an30259a, aw2013, bcm6328, bcm6358, cr0014114, el15203000, gpio,
    is31fl32xx, lm3532, lm36274, lm3692x, lm3697, lp50xx, lp8860, lt3593,
    max77650, mt6323, ns2, pm8058, pwm, syscon, tlc591xx and turris-omnia.

    There is one driver in drivers/input which parses this property on it's
    own. I shall send a separate patch there after this is applied.

    There are still 8 drivers that parse this property on their own because
    they do not pass the led_init_data structure to the registering
    function. I will try to refactor those in the future.

    Signed-off-by: Marek Behún
    Signed-off-by: Pavel Machek

    Marek Behún
     
  • This driver uses extended LED registration, so we do not need to parse
    the `label` DT property on our own.

    Signed-off-by: Marek Behún
    Signed-off-by: Pavel Machek

    Marek Behún
     

22 Jul, 2020

1 commit

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Acked-by: Rob Herring
    Acked-by: Dan Murphy
    Signed-off-by: Pavel Machek

    Alexander A. Klimov
     

07 Apr, 2020

1 commit


06 Jan, 2020

1 commit


05 Jan, 2020

1 commit


13 Sep, 2019

1 commit


04 Sep, 2019

1 commit

  • Move the static keyword to the front of declarations ramp_table,
    als_avrg_table and als_imp_table, and resolve the following
    compiler warnings that can be seen when building with warnings
    enabled (W=1):

    drivers/leds/leds-lm3532.c:209:1: warning:
    ‘static’ is not at beginning of declaration [-Wold-style-declaration]

    drivers/leds/leds-lm3532.c:266:1: warning:
    ‘static’ is not at beginning of declaration [-Wold-style-declaration]

    drivers/leds/leds-lm3532.c:281:1: warning:
    ‘static’ is not at beginning of declaration [-Wold-style-declaration]

    Signed-off-by: Krzysztof Wilczynski
    Signed-off-by: Jacek Anaszewski

    Krzysztof Wilczynski
     

01 Sep, 2019

1 commit


27 Aug, 2019

4 commits


26 Jul, 2019

1 commit


08 Apr, 2019

1 commit

  • Introduce the Texas Instruments LM3532 White LED driver.
    The driver supports ALS configurability or manual brightness
    control.

    The driver also supports associating LED strings with specific
    control banks in a group or as individually controlled strings.

    Signed-off-by: Dan Murphy
    Tested-by: Tony Lindgren
    Signed-off-by: Jacek Anaszewski

    Dan Murphy