Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander A. Klimov and committed by
Sebastian Reichel
81bd45fc a7f79f99

+39 -39
+8 -8
drivers/power/supply/bq2415x_charger.c
··· 5 5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org> 6 6 * 7 7 * Datasheets: 8 - * http://www.ti.com/product/bq24150 9 - * http://www.ti.com/product/bq24150a 10 - * http://www.ti.com/product/bq24152 11 - * http://www.ti.com/product/bq24153 12 - * http://www.ti.com/product/bq24153a 13 - * http://www.ti.com/product/bq24155 14 - * http://www.ti.com/product/bq24157s 15 - * http://www.ti.com/product/bq24158 8 + * https://www.ti.com/product/bq24150 9 + * https://www.ti.com/product/bq24150a 10 + * https://www.ti.com/product/bq24152 11 + * https://www.ti.com/product/bq24153 12 + * https://www.ti.com/product/bq24153a 13 + * https://www.ti.com/product/bq24155 14 + * https://www.ti.com/product/bq24157s 15 + * https://www.ti.com/product/bq24158 16 16 */ 17 17 18 18 #include <linux/kernel.h>
+3 -3
drivers/power/supply/bq24257_charger.c
··· 5 5 * Copyright (C) 2015 Intel Corporation 6 6 * 7 7 * Datasheets: 8 - * http://www.ti.com/product/bq24250 9 - * http://www.ti.com/product/bq24251 10 - * http://www.ti.com/product/bq24257 8 + * https://www.ti.com/product/bq24250 9 + * https://www.ti.com/product/bq24251 10 + * https://www.ti.com/product/bq24257 11 11 */ 12 12 13 13 #include <linux/module.h>
+1 -1
drivers/power/supply/bq2515x_charger.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 // BQ2515X Battery Charger Driver 3 - // Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 3 + // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 4 4 5 5 #include <linux/err.h> 6 6 #include <linux/i2c.h>
+25 -25
drivers/power/supply/bq27xxx_battery.c
··· 18 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 19 * 20 20 * Datasheets: 21 - * http://www.ti.com/product/bq27000 22 - * http://www.ti.com/product/bq27200 23 - * http://www.ti.com/product/bq27010 24 - * http://www.ti.com/product/bq27210 25 - * http://www.ti.com/product/bq27500 26 - * http://www.ti.com/product/bq27510-g1 27 - * http://www.ti.com/product/bq27510-g2 28 - * http://www.ti.com/product/bq27510-g3 29 - * http://www.ti.com/product/bq27520-g1 30 - * http://www.ti.com/product/bq27520-g2 31 - * http://www.ti.com/product/bq27520-g3 32 - * http://www.ti.com/product/bq27520-g4 33 - * http://www.ti.com/product/bq27530-g1 34 - * http://www.ti.com/product/bq27531-g1 35 - * http://www.ti.com/product/bq27541-g1 36 - * http://www.ti.com/product/bq27542-g1 37 - * http://www.ti.com/product/bq27546-g1 38 - * http://www.ti.com/product/bq27742-g1 39 - * http://www.ti.com/product/bq27545-g1 40 - * http://www.ti.com/product/bq27421-g1 41 - * http://www.ti.com/product/bq27425-g1 42 - * http://www.ti.com/product/bq27426 43 - * http://www.ti.com/product/bq27411-g1 44 - * http://www.ti.com/product/bq27441-g1 45 - * http://www.ti.com/product/bq27621-g1 21 + * https://www.ti.com/product/bq27000 22 + * https://www.ti.com/product/bq27200 23 + * https://www.ti.com/product/bq27010 24 + * https://www.ti.com/product/bq27210 25 + * https://www.ti.com/product/bq27500 26 + * https://www.ti.com/product/bq27510-g1 27 + * https://www.ti.com/product/bq27510-g2 28 + * https://www.ti.com/product/bq27510-g3 29 + * https://www.ti.com/product/bq27520-g1 30 + * https://www.ti.com/product/bq27520-g2 31 + * https://www.ti.com/product/bq27520-g3 32 + * https://www.ti.com/product/bq27520-g4 33 + * https://www.ti.com/product/bq27530-g1 34 + * https://www.ti.com/product/bq27531-g1 35 + * https://www.ti.com/product/bq27541-g1 36 + * https://www.ti.com/product/bq27542-g1 37 + * https://www.ti.com/product/bq27546-g1 38 + * https://www.ti.com/product/bq27742-g1 39 + * https://www.ti.com/product/bq27545-g1 40 + * https://www.ti.com/product/bq27421-g1 41 + * https://www.ti.com/product/bq27425-g1 42 + * https://www.ti.com/product/bq27426 43 + * https://www.ti.com/product/bq27411-g1 44 + * https://www.ti.com/product/bq27441-g1 45 + * https://www.ti.com/product/bq27621-g1 46 46 */ 47 47 48 48 #include <linux/device.h>
+1 -1
drivers/power/supply/bq27xxx_battery_hdq.c
··· 1 1 /* 2 2 * BQ27xxx battery monitor HDQ/1-wire driver 3 3 * 4 - * Copyright (C) 2007-2017 Texas Instruments Incorporated - http://www.ti.com/ 4 + * Copyright (C) 2007-2017 Texas Instruments Incorporated - https://www.ti.com/ 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify 7 7 * it under the terms of the GNU General Public License version 2 as
+1 -1
drivers/power/supply/bq27xxx_battery_i2c.c
··· 1 1 /* 2 2 * BQ27xxx battery monitor I2C driver 3 3 * 4 - * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ 4 + * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ 5 5 * Andrew F. Davis <afd@ti.com> 6 6 * 7 7 * This program is free software; you can redistribute it and/or modify