[PATCH 5.15 018/107] power: supply: Fix logic checking if system is running from battery