IIO has a map interface that was used by the bone-helper function.
This was added via a patch in the old patch series.
I didnt want to disturb people using the bone-helper function so I added the patch (after the required modifications) to my series as well.
the bone-helper now works great. Doesn't give erroneous values. And doesn't require multiple refreshes either.