diff options
author | Gregor Boirie <gregor.boirie@parrot.com> | 2016-06-27 12:38:53 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-04 18:11:07 +0100 |
commit | c9d5e5b97e8723e20204b430edde2f3dc5f5c0cf (patch) | |
tree | 0c00f2d016f44f2f7cc1b3687d3864a75ff005c9 /drivers/iio | |
parent | e7385de5291e347f5bc85985acdce3a3f5096667 (diff) | |
download | linux-c9d5e5b97e8723e20204b430edde2f3dc5f5c0cf.tar.gz linux-c9d5e5b97e8723e20204b430edde2f3dc5f5c0cf.tar.bz2 linux-c9d5e5b97e8723e20204b430edde2f3dc5f5c0cf.zip |
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.c | 4 |
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[] = { .scan_type = { .sign = 'u', .realbits = 24, - .storagebits = 24, + .storagebits = 32, .endianness = IIO_LE, }, .info_mask_separate = @@ -218,7 +218,7 @@ static const struct iio_chan_spec st_press_lps22hb_channels[] = { .scan_type = { .sign = 'u', .realbits = 24, - .storagebits = 24, + .storagebits = 32, .endianness = IIO_LE, }, .info_mask_separate = |