Used to do vs Used to doing: What's the difference?

Used to do vs Used to doing: What's the difference?