iio: pressure: bmp280: read calibration data once
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Jun 2016 01:48:54 +0000 (03:48 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Jul 2016 10:32:15 +0000 (11:32 +0100)
commitb33b7d5ac30616aca73cc13a3dc06ac45d166ea0
tree1a7b26eaf77f293afd3b285ebace4bdd588f26fa
parent3d838118c6aa73ae28e49bd9a014e2e9bd6ed3ab
iio: pressure: bmp280: read calibration data once

The calibration data is described as coming from an E2PROM and that
means it does not change. Just read it once at probe time and store
it in the device state container. Also toss the calibration data
into the entropy pool since it is device unique.

Reviewed-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/bmp280-core.c