You can use a spacer, insert, dropper post remote, or even a plastic shim to limit dropper post travel. This is ideal for variable terrain riding when you want to drop or raise your post part-way and still be able to pedal comfortably.
For minor adjustments, many dropper posts come with their own adjustable systems, which you can use to adjust your ride height in 5mm increments in some instances.