Skip to content

Commit 49dc2fb

Browse files
Al2Klimovgroeck
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 009f429 commit 49dc2fb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Documentation/hwmon/ina2xx.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Supported chips:
1111

1212
Datasheet: Publicly available at the Texas Instruments website
1313

14-
http://www.ti.com/
14+
https://www.ti.com/
1515

1616
* Texas Instruments INA220
1717

@@ -21,7 +21,7 @@ Supported chips:
2121

2222
Datasheet: Publicly available at the Texas Instruments website
2323

24-
http://www.ti.com/
24+
https://www.ti.com/
2525

2626
* Texas Instruments INA226
2727

@@ -31,7 +31,7 @@ Supported chips:
3131

3232
Datasheet: Publicly available at the Texas Instruments website
3333

34-
http://www.ti.com/
34+
https://www.ti.com/
3535

3636
* Texas Instruments INA230
3737

@@ -41,7 +41,7 @@ Supported chips:
4141

4242
Datasheet: Publicly available at the Texas Instruments website
4343

44-
http://www.ti.com/
44+
https://www.ti.com/
4545

4646
* Texas Instruments INA231
4747

@@ -51,7 +51,7 @@ Supported chips:
5151

5252
Datasheet: Publicly available at the Texas Instruments website
5353

54-
http://www.ti.com/
54+
https://www.ti.com/
5555

5656
Author: Lothar Felten <[email protected]>
5757

drivers/hwmon/ina2xx.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
*
55
* INA219:
66
* 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
88
*
99
* INA220:
1010
* Bi-Directional Current/Power Monitor with I2C Interface
11-
* Datasheet: http://www.ti.com/product/ina220
11+
* Datasheet: https://www.ti.com/product/ina220
1212
*
1313
* INA226:
1414
* Bi-Directional Current/Power Monitor with I2C Interface
15-
* Datasheet: http://www.ti.com/product/ina226
15+
* Datasheet: https://www.ti.com/product/ina226
1616
*
1717
* INA230:
1818
* Bi-directional Current/Power Monitor with I2C Interface
19-
* Datasheet: http://www.ti.com/product/ina230
19+
* Datasheet: https://www.ti.com/product/ina230
2020
*
2121
* Copyright (C) 2012 Lothar Felten <[email protected]>
2222
* Thanks to Jan Volkering
@@ -148,7 +148,7 @@ static const struct ina2xx_config ina2xx_config[] = {
148148
* Available averaging rates for ina226. The indices correspond with
149149
* the bit values expected by the chip (according to the ina226 datasheet,
150150
* 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.
152152
*/
153153
static const int ina226_avg_tab[] = { 1, 4, 16, 64, 128, 256, 512, 1024 };
154154

0 commit comments

Comments
 (0)