power: supply: bq2xxxx: 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>
[also update recently added ti.com http links]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Alexander A. Klimov 2020-07-13 21:16:38 +02:00 committed by Sebastian Reichel
parent a7f79f9954
commit 81bd45fc36
6 changed files with 39 additions and 39 deletions

View File

@ -5,14 +5,14 @@
* Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org>
*
* Datasheets:
* http://www.ti.com/product/bq24150
* http://www.ti.com/product/bq24150a
* http://www.ti.com/product/bq24152
* http://www.ti.com/product/bq24153
* http://www.ti.com/product/bq24153a
* http://www.ti.com/product/bq24155
* http://www.ti.com/product/bq24157s
* http://www.ti.com/product/bq24158
* https://www.ti.com/product/bq24150
* https://www.ti.com/product/bq24150a
* https://www.ti.com/product/bq24152
* https://www.ti.com/product/bq24153
* https://www.ti.com/product/bq24153a
* https://www.ti.com/product/bq24155
* https://www.ti.com/product/bq24157s
* https://www.ti.com/product/bq24158
*/
#include <linux/kernel.h>

View File

@ -5,9 +5,9 @@
* Copyright (C) 2015 Intel Corporation
*
* Datasheets:
* http://www.ti.com/product/bq24250
* http://www.ti.com/product/bq24251
* http://www.ti.com/product/bq24257
* https://www.ti.com/product/bq24250
* https://www.ti.com/product/bq24251
* https://www.ti.com/product/bq24257
*/
#include <linux/module.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
// BQ2515X Battery Charger Driver
// Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
// Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
#include <linux/err.h>
#include <linux/i2c.h>

View File

@ -18,31 +18,31 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Datasheets:
* http://www.ti.com/product/bq27000
* http://www.ti.com/product/bq27200
* http://www.ti.com/product/bq27010
* http://www.ti.com/product/bq27210
* http://www.ti.com/product/bq27500
* http://www.ti.com/product/bq27510-g1
* http://www.ti.com/product/bq27510-g2
* http://www.ti.com/product/bq27510-g3
* http://www.ti.com/product/bq27520-g1
* http://www.ti.com/product/bq27520-g2
* http://www.ti.com/product/bq27520-g3
* http://www.ti.com/product/bq27520-g4
* http://www.ti.com/product/bq27530-g1
* http://www.ti.com/product/bq27531-g1
* http://www.ti.com/product/bq27541-g1
* http://www.ti.com/product/bq27542-g1
* http://www.ti.com/product/bq27546-g1
* http://www.ti.com/product/bq27742-g1
* http://www.ti.com/product/bq27545-g1
* http://www.ti.com/product/bq27421-g1
* http://www.ti.com/product/bq27425-g1
* http://www.ti.com/product/bq27426
* http://www.ti.com/product/bq27411-g1
* http://www.ti.com/product/bq27441-g1
* http://www.ti.com/product/bq27621-g1
* https://www.ti.com/product/bq27000
* https://www.ti.com/product/bq27200
* https://www.ti.com/product/bq27010
* https://www.ti.com/product/bq27210
* https://www.ti.com/product/bq27500
* https://www.ti.com/product/bq27510-g1
* https://www.ti.com/product/bq27510-g2
* https://www.ti.com/product/bq27510-g3
* https://www.ti.com/product/bq27520-g1
* https://www.ti.com/product/bq27520-g2
* https://www.ti.com/product/bq27520-g3
* https://www.ti.com/product/bq27520-g4
* https://www.ti.com/product/bq27530-g1
* https://www.ti.com/product/bq27531-g1
* https://www.ti.com/product/bq27541-g1
* https://www.ti.com/product/bq27542-g1
* https://www.ti.com/product/bq27546-g1
* https://www.ti.com/product/bq27742-g1
* https://www.ti.com/product/bq27545-g1
* https://www.ti.com/product/bq27421-g1
* https://www.ti.com/product/bq27425-g1
* https://www.ti.com/product/bq27426
* https://www.ti.com/product/bq27411-g1
* https://www.ti.com/product/bq27441-g1
* https://www.ti.com/product/bq27621-g1
*/
#include <linux/device.h>

View File

@ -1,7 +1,7 @@
/*
* BQ27xxx battery monitor HDQ/1-wire driver
*
* Copyright (C) 2007-2017 Texas Instruments Incorporated - http://www.ti.com/
* Copyright (C) 2007-2017 Texas Instruments Incorporated - https://www.ti.com/
*
* 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

View File

@ -1,7 +1,7 @@
/*
* BQ27xxx battery monitor I2C driver
*
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
* Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
* Andrew F. Davis <afd@ti.com>
*
* This program is free software; you can redistribute it and/or modify