summaryrefslogtreecommitdiffstats
path: root/drivers/iio/humidity
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-05-20 10:06:41 -0700
committerJonathan Cameron <jic23@kernel.org>2016-05-21 17:23:32 +0100
commit0e35cf5ce00d873d6e529d2b2cd7598d52438051 (patch)
treed408296bc911d265723d3a364dfe0903b23a3a0a /drivers/iio/humidity
parenta3e5afe491bf7462013aa9f0bb3b55e3d05b784d (diff)
downloadblackbird-op-linux-0e35cf5ce00d873d6e529d2b2cd7598d52438051.tar.gz
blackbird-op-linux-0e35cf5ce00d873d6e529d2b2cd7598d52438051.zip
iio: humidity: hdc100x: correct humidity integration time mask
Apply the correct mask to enable all available humidity integration times. Currently, the driver defaults to 6500 and all is okay with that. However, if 3850 is selected we get a stuck bit and can't change back to 6500 or select 2500. (Verified with HDC1008) Signed-off-by: Alison Schofield <amsfield22@gmail.com> Cc: Daniel Baluta <daniel.baluta@gmail.com> Reviewed-by: Matt Ranostay <mranostay@gmail.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/humidity')
-rw-r--r--drivers/iio/humidity/hdc100x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c
index fa4767613173..59aa1cbdc2fd 100644
--- a/drivers/iio/humidity/hdc100x.c
+++ b/drivers/iio/humidity/hdc100x.c
@@ -55,7 +55,7 @@ static const struct {
},
{ /* IIO_HUMIDITYRELATIVE channel */
.shift = 8,
- .mask = 2,
+ .mask = 3,
},
};
OpenPOWER on IntegriCloud