power: supply: bq2xxxx: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Mon, 13 Jul 2020 19:16:38 +0000 (21:16 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 28 Jul 2020 00:07:35 +0000 (02:07 +0200)
commit81bd45fc36e3d01db66c17fa5ed5f39a61e67477
treef926ba4a5c3f213acba354246ffc03d95a10e856
parenta7f79f99541eff4e6bcae0014eb08d3019337565
power: supply: bq2xxxx: 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>
[also update recently added ti.com http links]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq2415x_charger.c
drivers/power/supply/bq24257_charger.c
drivers/power/supply/bq2515x_charger.c
drivers/power/supply/bq27xxx_battery.c
drivers/power/supply/bq27xxx_battery_hdq.c
drivers/power/supply/bq27xxx_battery_i2c.c