[PATCH openEuler-22.03-LTS-SP1 v2 344/370] power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type()