On different kernel versions, sometimes we get spaces at the end, and
sometimes not, this fixes things, so we can handle it either way.

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