iio: Factor out fixed point number parsing into its own function