]> git.karo-electronics.de Git - linux-beck.git/commit
iio: mlx90614: Check for errors in read values
authorVianney le Clément de Saint-Marcq <vianney.leclement@essensium.com>
Mon, 30 Mar 2015 08:35:02 +0000 (10:35 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 9 Apr 2015 14:10:18 +0000 (15:10 +0100)
commitd02e0f8f62f786e9291caf4633e20724c2ab7f99
tree7afea62206926e3e5be796a980b5c3f66a5a92f7
parenteb4b07dae4d4b7915333f687675209f677f72fc6
iio: mlx90614: Check for errors in read values

The device uses the MSB of the returned temperature value as an error
flag.  Return a read error when this bit is set.

Signed-off-by: Vianney le Clément de Saint-Marcq <vianney.leclement@essensium.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/temperature/mlx90614.c