summaryrefslogtreecommitdiffstats
path: root/drivers/iio/humidity
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-05-20 19:06:41 +0200
committerJonathan Cameron <jic23@kernel.org>2016-05-21 18:23:32 +0200
commit0e35cf5ce00d873d6e529d2b2cd7598d52438051 (patch)
treed408296bc911d265723d3a364dfe0903b23a3a0a /drivers/iio/humidity
parentiio: pressure: bmp280: fix error message for wrong chip id (diff)
downloadlinux-0e35cf5ce00d873d6e529d2b2cd7598d52438051.tar.xz
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,
},
};