iio:pressure:ms5611: fix ms5607 temp compensation
authorGregor Boirie <gregor.boirie@parrot.com>
Wed, 17 Feb 2016 17:52:49 +0000 (18:52 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 24 Feb 2016 20:40:46 +0000 (20:40 +0000)
commitce5b8fc163619067aab157008daf5719cd38fdd1
treef603eeff9b64f5a5f2db04a778054d72cbe84024
parentfc0dccdda105be0026aa99271a42d06d20427641
iio:pressure:ms5611: fix ms5607 temp compensation

Computation of sens2 was wrong and is fixed by this patch, sens2 should be:
    2 * (t - 2000)^2
See page 8 of ms5607 datasheet here:
    http://www.meas-spec.com/product/pressure/MS5607-02BA03.aspx

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/ms5611_core.c