Skip to content

Commit 3593cd5

Browse files
Al2KlimovJonathan Cameron
authored andcommitted
Replace HTTP links with HTTPS ones: drivers/iio
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> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 5a6b56d commit 3593cd5

31 files changed

Lines changed: 59 additions & 59 deletions

‎drivers/iio/accel/adxl345_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 2017 Eva Rachel Retuya <eraretuya@gmail.com>
66
*
7-
* Datasheet: http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf
7+
* Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf
88
*/
99

1010
#include <linux/module.h>

‎drivers/iio/adc/ad7949.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (C) 2018 CMC NV
55
*
6-
* http://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
6+
* https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
77
*/
88

99
#include <linux/delay.h>

‎drivers/iio/adc/ina2xx-adc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static int ina2xx_read_raw(struct iio_dev *indio_dev,
273273
* Available averaging rates for ina226. The indices correspond with
274274
* the bit values expected by the chip (according to the ina226 datasheet,
275275
* table 3 AVG bit settings, found at
276-
* http://www.ti.com/lit/ds/symlink/ina226.pdf.
276+
* https://www.ti.com/lit/ds/symlink/ina226.pdf.
277277
*/
278278
static const int ina226_avg_tab[] = { 1, 4, 16, 64, 128, 256, 512, 1024 };
279279

‎drivers/iio/adc/mcp320x.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
* MCP3553
2828
*
2929
* Datasheet can be found here:
30-
* http://ww1.microchip.com/downloads/en/DeviceDoc/21293C.pdf mcp3001
31-
* http://ww1.microchip.com/downloads/en/DeviceDoc/21294E.pdf mcp3002
32-
* http://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf mcp3004/08
30+
* https://ww1.microchip.com/downloads/en/DeviceDoc/21293C.pdf mcp3001
31+
* https://ww1.microchip.com/downloads/en/DeviceDoc/21294E.pdf mcp3002
32+
* https://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf mcp3004/08
3333
* http://ww1.microchip.com/downloads/en/DeviceDoc/21290D.pdf mcp3201
3434
* http://ww1.microchip.com/downloads/en/DeviceDoc/21034D.pdf mcp3202
3535
* http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf mcp3204/08
36-
* http://ww1.microchip.com/downloads/en/DeviceDoc/21700E.pdf mcp3301
36+
* https://ww1.microchip.com/downloads/en/DeviceDoc/21700E.pdf mcp3301
3737
* http://ww1.microchip.com/downloads/en/DeviceDoc/21950D.pdf mcp3550/1/3
3838
*/
3939

‎drivers/iio/adc/mcp3422.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* Author: Angelo Compagnucci <angelo.compagnucci@gmail.com>
77
*
88
* Datasheet: http://ww1.microchip.com/downloads/en/devicedoc/22088b.pdf
9-
* http://ww1.microchip.com/downloads/en/DeviceDoc/22226a.pdf
10-
* http://ww1.microchip.com/downloads/en/DeviceDoc/22072b.pdf
9+
* https://ww1.microchip.com/downloads/en/DeviceDoc/22226a.pdf
10+
* https://ww1.microchip.com/downloads/en/DeviceDoc/22072b.pdf
1111
*
1212
* This driver exports the value of analog input voltage to sysfs, the
1313
* voltage unit is nV.

‎drivers/iio/adc/ti-adc081c.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* Copyright (C) 2016 Intel
77
*
88
* Datasheets:
9-
* http://www.ti.com/lit/ds/symlink/adc081c021.pdf
10-
* http://www.ti.com/lit/ds/symlink/adc101c021.pdf
11-
* http://www.ti.com/lit/ds/symlink/adc121c021.pdf
9+
* https://www.ti.com/lit/ds/symlink/adc081c021.pdf
10+
* https://www.ti.com/lit/ds/symlink/adc101c021.pdf
11+
* https://www.ti.com/lit/ds/symlink/adc121c021.pdf
1212
*
1313
* The devices have a very similar interface and differ mostly in the number of
1414
* bits handled. For the 8-bit and 10-bit models the least-significant 4 or 2

‎drivers/iio/adc/ti-adc0832.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Copyright (c) 2016 Akinobu Mita <akinobu.mita@gmail.com>
66
*
7-
* Datasheet: http://www.ti.com/lit/ds/symlink/adc0832-n.pdf
7+
* Datasheet: https://www.ti.com/lit/ds/symlink/adc0832-n.pdf
88
*/
99

1010
#include <linux/module.h>

‎drivers/iio/adc/ti-adc084s021.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Driver for Texas Instruments' ADC084S021 ADC chip.
66
* Datasheets can be found here:
7-
* http://www.ti.com/lit/ds/symlink/adc084s021.pdf
7+
* https://www.ti.com/lit/ds/symlink/adc084s021.pdf
88
*/
99

1010
#include <linux/err.h>

‎drivers/iio/adc/ti-adc128s052.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*
55
* Driver for Texas Instruments' ADC128S052, ADC122S021 and ADC124S021 ADC chip.
66
* Datasheets can be found here:
7-
* http://www.ti.com/lit/ds/symlink/adc128s052.pdf
8-
* http://www.ti.com/lit/ds/symlink/adc122s021.pdf
9-
* http://www.ti.com/lit/ds/symlink/adc124s021.pdf
7+
* https://www.ti.com/lit/ds/symlink/adc128s052.pdf
8+
* https://www.ti.com/lit/ds/symlink/adc122s021.pdf
9+
* https://www.ti.com/lit/ds/symlink/adc124s021.pdf
1010
*/
1111

1212
#include <linux/acpi.h>

‎drivers/iio/adc/ti-ads124s08.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* TI ADS124S0X chip family driver
3-
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3+
* Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
44
*/
55

66
#include <linux/err.h>

0 commit comments

Comments
 (0)