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

hwmon: (ina2xx) 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>
Link: https://lore.kernel.org/r/20200719181530.60878-1-grandmaster@al2klimov.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Alexander A. Klimov and committed by
Guenter Roeck
49dc2fb0 009f429f

+10 -10
+5 -5
Documentation/hwmon/ina2xx.rst
··· 11 11 12 12 Datasheet: Publicly available at the Texas Instruments website 13 13 14 - http://www.ti.com/ 14 + https://www.ti.com/ 15 15 16 16 * Texas Instruments INA220 17 17 ··· 21 21 22 22 Datasheet: Publicly available at the Texas Instruments website 23 23 24 - http://www.ti.com/ 24 + https://www.ti.com/ 25 25 26 26 * Texas Instruments INA226 27 27 ··· 31 31 32 32 Datasheet: Publicly available at the Texas Instruments website 33 33 34 - http://www.ti.com/ 34 + https://www.ti.com/ 35 35 36 36 * Texas Instruments INA230 37 37 ··· 41 41 42 42 Datasheet: Publicly available at the Texas Instruments website 43 43 44 - http://www.ti.com/ 44 + https://www.ti.com/ 45 45 46 46 * Texas Instruments INA231 47 47 ··· 51 51 52 52 Datasheet: Publicly available at the Texas Instruments website 53 53 54 - http://www.ti.com/ 54 + https://www.ti.com/ 55 55 56 56 Author: Lothar Felten <lothar.felten@gmail.com> 57 57
+5 -5
drivers/hwmon/ina2xx.c
··· 4 4 * 5 5 * INA219: 6 6 * Zero Drift Bi-Directional Current/Power Monitor with I2C Interface 7 - * Datasheet: http://www.ti.com/product/ina219 7 + * Datasheet: https://www.ti.com/product/ina219 8 8 * 9 9 * INA220: 10 10 * Bi-Directional Current/Power Monitor with I2C Interface 11 - * Datasheet: http://www.ti.com/product/ina220 11 + * Datasheet: https://www.ti.com/product/ina220 12 12 * 13 13 * INA226: 14 14 * Bi-Directional Current/Power Monitor with I2C Interface 15 - * Datasheet: http://www.ti.com/product/ina226 15 + * Datasheet: https://www.ti.com/product/ina226 16 16 * 17 17 * INA230: 18 18 * Bi-directional Current/Power Monitor with I2C Interface 19 - * Datasheet: http://www.ti.com/product/ina230 19 + * Datasheet: https://www.ti.com/product/ina230 20 20 * 21 21 * Copyright (C) 2012 Lothar Felten <lothar.felten@gmail.com> 22 22 * Thanks to Jan Volkering ··· 148 148 * Available averaging rates for ina226. The indices correspond with 149 149 * the bit values expected by the chip (according to the ina226 datasheet, 150 150 * table 3 AVG bit settings, found at 151 - * http://www.ti.com/lit/ds/symlink/ina226.pdf. 151 + * https://www.ti.com/lit/ds/symlink/ina226.pdf. 152 152 */ 153 153 static const int ina226_avg_tab[] = { 1, 4, 16, 64, 128, 256, 512, 1024 }; 154 154