From: Irina Tirdea Date: Wed, 8 Apr 2015 15:26:12 +0000 (+0300) Subject: iio: pressure: bmp280: fix temp compensation X-Git-Tag: omap-for-v4.2/soc-pt1-take2~6^2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abad398337f038f5822e53c55eff5b0820ef7efe;p=pandora-kernel.git iio: pressure: bmp280: fix temp compensation Temperature reads on bmp280 device always return 0, due to a missing step in the compensation formula (data->tfine is never initialized). Initialize data->tfine value so we get correct temperature and pressure values. Signed-off-by: Irina Tirdea Reviewed-by: Vlad Dogaru Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed