Then when he says, all these, he identifies the author of these graces. In regard to this he excludes three errors. The first is that of the Gentiles attributing different gifts to different gods. Against this he says: All these are accomplished by one and the same Spirit: "One body and one spirit" (Eph 4:4). Secondly, the error of those who attributed to God only a general providence and assigned the distinctions of particular things to second causes alone. Against this he adds: apportioning to each one individually as he wills: "In the fullness of his knowledge the Lord separated them" (Sir ...33:11). Thirdly, he excludes the error of those who attributed the diversity among graces to fate, or to human merit, and not solely to the divine will, as the Macedonians, who said that the Holy Spirit is the servant of the Father and of the Son. And he excludes this by saying: as he wills: "The spirit breathes where he wills" (Jn 3:8).
Source: Commentary on 1 Corinthians