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)
commit5a6b56de410c8c905bde4295ba8c3d75910aecea
treee602e84b92c0cbe5d4c67975f619cd8b23095dfb
parenta777b22ff5549d5fc3b76146d9e8d44c0671a9c9
Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/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>
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