From: Lars-Peter Clausen Date: Thu, 10 Jan 2013 16:18:00 +0000 (+0000) Subject: staging:iio:tsl2x7x: Use iio_str_to_fixedpoint instead of open-coding it X-Git-Tag: v3.9-rc1~127^2~276^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f6a0bad61e34c648fd08ff8dcbfdd58148963d2;p=pandora-kernel.git staging:iio:tsl2x7x: Use iio_str_to_fixedpoint instead of open-coding it The tsl2x7x driver has a copy'n'pasted version of the iio_str_to_fixedpoint() function from the IIO core. Replace this custom copy and use iio_str_to_fixedpoint instead. The patch also introduces a slight functional change in that it makes sure that in case of a parsing error the error is reported back to userspace instead of silently ignoring it. Signed-off-by: Lars-Peter Clausen Acked-by: Jon Brenner Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed