summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ad_sigma_delta.c
diff options
context:
space:
mode:
authorColin Parker <colin.parker@aclima.io>2017-08-29 02:21:39 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-09-24 18:58:14 +0300
commit4b1f0c31f96c45e8521dd84aae50f2aa4aecfb7b (patch)
tree714847ed4fc10b9c642488d0ce7ded46f3ec6fa8 /drivers/iio/adc/ad_sigma_delta.c
parente6f4794371ee7cce1339e7ca9542f1e703c5f84a (diff)
downloadlinux-4b1f0c31f96c45e8521dd84aae50f2aa4aecfb7b.tar.xz
IIO: BME280: Updates to Humidity readings need ctrl_reg write!
The ctrl_reg register needs to be written after any write to the humidity registers. The value written to the ctrl_reg register does not necessarily need to change, but a write operation must occur. The regmap_update_bits functions will not write to a register if the register value matches the value to be written. This saves unnecessary bus operations. The change in this patch forces a bus write during the chip_config operation by switching to regmap_write_bits. This will fix issues where the Humidity Sensor Oversampling bits are not updated after initialization. Signed-off-by: Colin Parker <colin.parker@aclima.io> Acked-by: Andreas Klinger <ak@it-klinger.de> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/ad_sigma_delta.c')
0 files changed, 0 insertions, 0 deletions