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

hwmon: (tmmp513) Replace HTTP links with HTTPS links

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 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/20200703185657.15329-1-grandmaster@al2klimov.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Alexander A. Klimov and committed by
Guenter Roeck
e263f2d3 0505aca8

+6 -6
+2 -2
Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml
··· 18 18 consumption. 19 19 20 20 Datasheets: 21 - http://www.ti.com/lit/gpn/tmp513 22 - http://www.ti.com/lit/gpn/tmp512 21 + https://www.ti.com/lit/gpn/tmp513 22 + https://www.ti.com/lit/gpn/tmp512 23 23 24 24 25 25 properties:
+2 -2
Documentation/hwmon/tmp513.rst
··· 9 9 10 10 Prefix: 'tmp512' 11 11 12 - Datasheet: http://www.ti.com/lit/ds/symlink/tmp512.pdf 12 + Datasheet: https://www.ti.com/lit/ds/symlink/tmp512.pdf 13 13 14 14 * Texas Instruments TMP513 15 15 16 16 Prefix: 'tmp513' 17 17 18 - Datasheet: http://www.ti.com/lit/ds/symlink/tmp513.pdf 18 + Datasheet: https://www.ti.com/lit/ds/symlink/tmp513.pdf 19 19 20 20 Authors: 21 21
+2 -2
drivers/hwmon/tmp513.c
··· 5 5 * TMP513: 6 6 * Thermal/Power Management with Triple Remote and 7 7 * Local Temperature Sensor and Current Shunt Monitor 8 - * Datasheet: http://www.ti.com/lit/gpn/tmp513 8 + * Datasheet: https://www.ti.com/lit/gpn/tmp513 9 9 * 10 10 * TMP512: 11 11 * Thermal/Power Management with Dual Remote 12 12 * and Local Temperature Sensor and Current Shunt Monitor 13 - * Datasheet: http://www.ti.com/lit/gpn/tmp512 13 + * Datasheet: https://www.ti.com/lit/gpn/tmp512 14 14 * 15 15 * Copyright (C) 2019 Eric Tremblay <etremblay@distech-controls.com> 16 16 *