Thermodynamic Entropy Variation is defined as $$\Delta S = \int_i^f \frac{dQ}{T},$$
where $i$ and $f$ are the initial and final states of the process.
My question is: does this equation apply to quasi-static irreversible processes, or only to reversible processes?
Obviously, it does not apply to processes that go through non-equilibrium states, since Temperature (or any state variable) is not even well defined in these states. But I'm unsure of whether it applies to irreversible processes that are quasi-static (and therefore don't go through non-equilibrium states).