Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/iio
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 4 Jul 2020 19:33:45 +0000 (21:33 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Jul 2020 14:05:58 +0000 (15:05 +0100)
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>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> #for Matt's drivers
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
Documentation/devicetree/bindings/iio/dac/ti,dac7612.txt
Documentation/devicetree/bindings/iio/iio-bindings.txt
Documentation/devicetree/bindings/iio/light/apds9300.txt
Documentation/devicetree/bindings/iio/light/apds9960.txt
Documentation/devicetree/bindings/iio/light/opt3001.txt
Documentation/devicetree/bindings/iio/light/vl6180.txt
Documentation/devicetree/bindings/iio/potentiometer/mcp41010.txt
Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
Documentation/devicetree/bindings/iio/pressure/asc,dlhl60d.yaml
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml

index d124eba1ce54fb3025547024c8266637d5ed035c..fd4eaa3d0ab4127a7396e6f955a287d3b9ab6ae1 100644 (file)
@@ -12,8 +12,8 @@ maintainers:
 description: |
   Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers that supports
   both I2C & SPI interfaces.
-    http://www.analog.com/en/products/mems/accelerometers/adxl345.html
-    http://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
+    https://www.analog.com/en/products/mems/accelerometers/adxl345.html
+    https://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
 
 properties:
   compatible:
index 639c94ed83e994460935b533057cedd13a810b65..17af395b99d9fef436c793690fca382c48febce5 100644 (file)
@@ -6,7 +6,7 @@ Is is programmable through an SPI interface.
 
 The internal DACs are loaded when the LOADDACS pin is pulled down.
 
-http://www.ti.com/lit/ds/sbas106/sbas106.pdf
+https://www.ti.com/lit/ds/sbas106/sbas106.pdf
 
 Required Properties:
 - compatible: Should be one of:
index af33267727f4e121839c94e244b9ef26f19310a2..aa63cac7323ecca359bc3b5e5dafa5f15fc79334 100644 (file)
@@ -9,7 +9,7 @@ specifier is an array of one or more cells identifying the IIO
 output on a device. The length of an IIO specifier is defined by the
 value of a #io-channel-cells property in the IIO provider node.
 
-[1] http://marc.info/?l=linux-iio&m=135902119507483&w=2
+[1] https://marc.info/?l=linux-iio&m=135902119507483&w=2
 
 ==IIO providers==
 
index aa199e09a493f179ecee2cf55a45054203c5a9a7..3aa6db3ee99d272d536a73d5279bbbd5ef3468e2 100644 (file)
@@ -1,6 +1,6 @@
 * Avago APDS9300 ambient light sensor
 
-http://www.avagotech.com/docs/AV02-1077EN
+https://www.avagotech.com/docs/AV02-1077EN
 
 Required properties:
 
index 3af325ad194b9137da740ace14d9fc9188ddc4fa..c53ddb81c4aa64b9eb392ae819ac341fb6f34bea 100644 (file)
@@ -1,6 +1,6 @@
 * Avago APDS9960 gesture/RGB/ALS/proximity sensor
 
-http://www.avagotech.com/docs/AV02-4191EN
+https://www.avagotech.com/docs/AV02-4191EN
 
 Required properties:
 
index 47b13eb8f4ecb02835295522860ed0643f707a51..9e6f2998e75154a58020840a4ae34a56e660f99a 100644 (file)
@@ -6,7 +6,7 @@ the optional generation of IIO events on rising/falling light threshold changes
 requires the use of interrupts. Without interrupts, only the simple reading
 of the current light value is supported through the IIO API.
 
-http://www.ti.com/product/opt3001
+https://www.ti.com/product/opt3001
 
 Required properties:
   - compatible: should be "ti,opt3001"
index 2c52952715a0e279596067b14554c0462e3a2e9b..fb9137d85df972a67eecf1ac98fbe867b924a74b 100644 (file)
@@ -1,6 +1,6 @@
 STMicro VL6180 -  ALS, range and proximity sensor
 
-Link to datasheet: http://www.st.com/resource/en/datasheet/vl6180x.pdf
+Link to datasheet: https://www.st.com/resource/en/datasheet/vl6180x.pdf
 
 Required properties:
 
index 566711b9950cf8c0d55d74569ed719c8a673e0f4..4f245e8469fdb00f21accbde3ea7142c76b9354e 100644 (file)
@@ -1,7 +1,7 @@
 * Microchip MCP41010/41050/41100/42010/42050/42100 Digital Potentiometer
 
 Datasheet publicly available at:
-http://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf
+https://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf
 
 The node for this driver must be a child node of a SPI controller, hence
 all mandatory properties described in
index e6d0c2eb345c4cbf4fca7022549325ffa0a727d5..f3ab02b0dd415f1ec8e472bfdca6eb1770e1717a 100644 (file)
@@ -1,7 +1,7 @@
 * Texas Instruments LMP91000 series of potentiostats
 
-LMP91000: http://www.ti.com/lit/ds/symlink/lmp91000.pdf
-LMP91002: http://www.ti.com/lit/ds/symlink/lmp91002.pdf
+LMP91000: https://www.ti.com/lit/ds/symlink/lmp91000.pdf
+LMP91002: https://www.ti.com/lit/ds/symlink/lmp91002.pdf
 
 Required properties:
 
index 64c18f1693f008ce21e374501e431efc5846c358..be2be4b556dbbd3b520d95374b0875edc57160e7 100644 (file)
@@ -13,7 +13,7 @@ description: |
   Bindings for the All Sensors DLH series pressure sensors.
 
   Specifications about the sensors can be found at:
-    http://www.allsensors.com/cad/DS-0355_Rev_B.PDF
+    https://www.allsensors.com/cad/DS-0355_Rev_B.PDF
 
 properties:
   compatible:
index f86f8b23ef18fd3d9daaeef35096f2c09074cfe0..ce795279839ef951ae70dc69a3ae7a5ef3f6031e 100644 (file)
@@ -17,9 +17,9 @@ description: |
     until it is received once again
 
   Specifications about the devices can be found at:
-  http://www.robot-electronics.co.uk/htm/srf04tech.htm
+  https://www.robot-electronics.co.uk/htm/srf04tech.htm
 
-  http://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf
+  https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf
 
 properties:
   compatible: