27 Sep, 2020

1 commit

  • 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
     

09 Sep, 2020

1 commit


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 Jan, 2020

4 commits


06 Jan, 2020

1 commit


04 Nov, 2019

5 commits


26 Jul, 2019

1 commit

  • Switch to using generic LED support for composing LED class
    device name.

    At this occassion remove initialization of struct led_classdev's
    dev->of_node property in the driver, since now it will be taken from
    fwnode assigned to struct led_init_data and passed to the new
    devm_led_classdev_register_ext() API.

    Signed-off-by: Jacek Anaszewski
    Tested-by: Dan Murphy
    Acked-by: Pavel Machek

    Jacek Anaszewski
     

04 Jul, 2018

3 commits


09 Jan, 2018

1 commit