Barcelona striker David Villa has been discharged from hospital a day after he was re-admitted because of kidney stones.