leds: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Mon, 13 Jul 2020 14:51:15 +0000 (16:51 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 22 Jul 2020 12:48:40 +0000 (14:48 +0200)
commitc5437338150e4914328c975767056d2dedacfd21
tree24464732ba864235b3df9b77a1f4dae6e57483bd
parent93690cdf3060c61dfce813121d0bfc055e7fa30d
leds: Replace HTTP links with HTTPS ones

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 <grandmaster@al2klimov.de>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Documentation/devicetree/bindings/leds/leds-lm3532.txt
Documentation/devicetree/bindings/leds/leds-lm3601x.txt
Documentation/devicetree/bindings/leds/leds-lm36274.txt
Documentation/devicetree/bindings/leds/leds-lm3692x.txt
Documentation/devicetree/bindings/leds/leds-lm3697.txt
Documentation/devicetree/bindings/leds/leds-lp8860.txt
drivers/leds/leds-lm3532.c
drivers/leds/leds-lm3601x.c
drivers/leds/leds-lm36274.c
drivers/leds/leds-lm3692x.c
drivers/leds/leds-lm3697.c