aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorGregor Boirie <gregor.boirie@parrot.com>2016-06-27 06:38:53 -0400
committerJonathan Cameron <jic23@kernel.org>2016-07-04 13:11:07 -0400
commitc9d5e5b97e8723e20204b430edde2f3dc5f5c0cf (patch)
tree0c00f2d016f44f2f7cc1b3687d3864a75ff005c9 /drivers/iio
parente7385de5291e347f5bc85985acdce3a3f5096667 (diff)
iio:st_pressure: align storagebits on power of 2
Sampled pressure data are 24 bits long and should be stored in a 32 bits word. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/pressure/st_pressure_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index 56d8f5eb9239..8fa3d811b37e 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -146,7 +146,7 @@ static const struct iio_chan_spec st_press_1_channels[] = {
146 .scan_type = { 146 .scan_type = {
147 .sign = 'u', 147 .sign = 'u',
148 .realbits = 24, 148 .realbits = 24,
149 .storagebits = 24, 149 .storagebits = 32,
150 .endianness = IIO_LE, 150 .endianness = IIO_LE,
151 }, 151 },
152 .info_mask_separate = 152 .info_mask_separate =
@@ -218,7 +218,7 @@ static const struct iio_chan_spec st_press_lps22hb_channels[] = {
218 .scan_type = { 218 .scan_type = {
219 .sign = 'u', 219 .sign = 'u',
220 .realbits = 24, 220 .realbits = 24,
221 .storagebits = 24, 221 .storagebits = 32,
222 .endianness = IIO_LE, 222 .endianness = IIO_LE,
223 }, 223 },
224 .info_mask_separate = 224 .info_mask_separate =