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