max14577_get_charger_state
ret = max14577_get_charger_state(chg, &charging);
ret = max14577_get_charger_state(chg, &val->intval);