I should test this more before pushing upstream...

Signed-off-by: Robin Getz <robin.getz@analog.com>