power_supply_match_string
ret = power_supply_match_string(ps_attr->text_values,
int i = power_supply_match_string(POWER_SUPPLY_CHARGE_TYPE_TEXT,