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>
This commit is contained in:
Alexander A. Klimov 2020-07-13 16:51:15 +02:00 committed by Pavel Machek
parent 93690cdf30
commit c543733815
11 changed files with 13 additions and 13 deletions

View File

@ -102,4 +102,4 @@ led-controller@38 {
}; };
For more product information please see the links below: For more product information please see the links below:
http://www.ti.com/product/LM3532 https://www.ti.com/product/LM3532

View File

@ -47,5 +47,5 @@ led-controller@64 {
} }
For more product information please see the links below: For more product information please see the links below:
http://www.ti.com/product/LM36010 https://www.ti.com/product/LM36010
http://www.ti.com/product/LM36011 https://www.ti.com/product/LM36011

View File

@ -82,4 +82,4 @@ lm36274@11 {
}; };
For more product information please see the link below: For more product information please see the link below:
http://www.ti.com/lit/ds/symlink/lm36274.pdf https://www.ti.com/lit/ds/symlink/lm36274.pdf

View File

@ -62,4 +62,4 @@ led-controller@36 {
} }
For more product information please see the link below: For more product information please see the link below:
http://www.ti.com/lit/ds/snvsa29/snvsa29.pdf https://www.ti.com/lit/ds/snvsa29/snvsa29.pdf

View File

@ -70,4 +70,4 @@ led-controller@36 {
} }
For more product information please see the link below: For more product information please see the link below:
http://www.ti.com/lit/ds/symlink/lm3697.pdf https://www.ti.com/lit/ds/symlink/lm3697.pdf

View File

@ -47,4 +47,4 @@ led-controller@2d {
} }
For more product information please see the link below: For more product information please see the link below:
http://www.ti.com/product/lp8860-q1 https://www.ti.com/product/lp8860-q1

View File

@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
// TI LM3532 LED driver // TI LM3532 LED driver
// Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
// http://www.ti.com/lit/ds/symlink/lm3532.pdf // https://www.ti.com/lit/ds/symlink/lm3532.pdf
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/leds.h> #include <linux/leds.h>

View File

@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
// Flash and torch driver for Texas Instruments LM3601X LED // Flash and torch driver for Texas Instruments LM3601X LED
// Flash driver chip family // Flash driver chip family
// Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/i2c.h> #include <linux/i2c.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
// TI LM36274 LED chip family driver // TI LM36274 LED chip family driver
// Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/device.h> #include <linux/device.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
// TI LM3692x LED chip family driver // TI LM3692x LED chip family driver
// Copyright (C) 2017-18 Texas Instruments Incorporated - http://www.ti.com/ // Copyright (C) 2017-18 Texas Instruments Incorporated - https://www.ti.com/
#include <linux/gpio/consumer.h> #include <linux/gpio/consumer.h>
#include <linux/i2c.h> #include <linux/i2c.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
// TI LM3697 LED chip family driver // TI LM3697 LED chip family driver
// Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
#include <linux/gpio/consumer.h> #include <linux/gpio/consumer.h>
#include <linux/i2c.h> #include <linux/i2c.h>