[PATCH OLK-5.10 344/370] power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type()