summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorAndreas Klinger <ak@it-klinger.de>2017-07-25 11:11:14 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-07-30 15:41:12 +0200
commiteb92b4183d93a6f101a6bd3aaae651de404c119a (patch)
tree764cfc1057925e126774dc1c053c4fc1dfaad5da /drivers/ptp
parentMerge tag 'iio-fixes-for-4.13a' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadlinux-eb92b4183d93a6f101a6bd3aaae651de404c119a.tar.xz
linux-eb92b4183d93a6f101a6bd3aaae651de404c119a.zip
iio: bmp280: properly initialize device for humidity reading
If the device is not initialized at least once it happens that the humidity reading is skipped, which means the special value 0x8000 is delivered. For omitting this case the oversampling of the humidity must be set before the oversampling of the temperature und pressure is set as written in the datasheet of the BME280. Furthermore proper error detection is added in case a skipped value is read from the device. This is done also for pressure and temperature reading. Especially it don't make sense to compensate this value and treat it as regular value. Signed-off-by: Andreas Klinger <ak@it-klinger.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions