pwm: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Wed, 8 Jul 2020 17:59:24 +0000 (19:59 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 30 Jul 2020 09:27:13 +0000 (11:27 +0200)
commit216a094de2521099e4ae04c5d07d8603ef9b24f1
tree489f6a8c28cab958df11d36a3f6aee6ace7c5675
parentdfd9b6154d5df4160f2c196d54dcf9223a7df959
pwm: 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 <grandmaster@al2klimov.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-omap-dmtimer.c
drivers/pwm/pwm-tiecap.c
drivers/pwm/pwm-tiehrpwm.c