linux-sg2042/drivers/iio/pressure
Stefan Tatschner 2e419aec3b iio:pressure:bmp280: Read calibration data in probe
This patch affects BME280 and BMP280. The readout of the calibration
data is moved to the probe function. Each sensor data access triggered
reading the full calibration data before this patch. According to the
datasheet, Section 4.4.2., the calibration data is stored in non-volatile
memory.

Since the calibration data does not change, and cannot be changed by the
user, we can reduce bus traffic by reading the calibration data once.
Additionally, proper organization of the data types enables removing
some odd casts in the compensation formulas.

Signed-off-by: Stefan Tatschner <stefan.tatschner@gmail.com>
Tested-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-08 16:03:43 +01:00
..
Kconfig iio: pressure: Fix name of BME280 part in Kconfig 2017-04-23 12:38:47 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
abp060mg.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
bmp280-core.c iio:pressure:bmp280: Read calibration data in probe 2018-01-08 16:03:43 +01:00
bmp280-i2c.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280-regmap.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bmp280-spi.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cros_ec_baro.c iio: cros_ec: Remove unused variable 2017-09-24 12:34:57 +01:00
hid-sensor-press.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
hp03.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
hp206c.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
mpl115.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
mpl115.h iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl115_i2c.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
mpl115_spi.c iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl3115.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
ms5611.h iio:pressure:ms5611: fix missing regulator_disable 2016-03-20 11:02:40 +00:00
ms5611_core.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
ms5611_i2c.c iio:pressure:ms5611: oversampling rate support 2016-03-05 14:45:14 +00:00
ms5611_spi.c iio: pressure: ms5611: use tab for indention 2016-04-16 13:39:28 +01:00
ms5637.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
st_pressure.h iio: pressure: add support to LPS33HW and LPS35HW 2017-09-03 18:10:33 +01:00
st_pressure_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_pressure_core.c iio: st_sensors: split open-drain parameters for irq1 and irq2 2017-10-10 20:38:39 +01:00
st_pressure_i2c.c iio: pressure: add support to LPS33HW and LPS35HW 2017-09-03 18:10:33 +01:00
st_pressure_spi.c iio: pressure: add support to LPS33HW and LPS35HW 2017-09-03 18:10:33 +01:00
t5403.c iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
zpa2326.c Merge 4.14-rc6 into staging-next 2017-10-23 14:29:43 +02:00
zpa2326.h iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_i2c.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_spi.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00