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>
This commit is contained in:
Gregor Boirie 2016-06-27 12:38:53 +02:00 committed by Jonathan Cameron
parent e7385de529
commit c9d5e5b97e
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ static const struct iio_chan_spec st_press_1_channels[] = {
.scan_type = { .scan_type = {
.sign = 'u', .sign = 'u',
.realbits = 24, .realbits = 24,
.storagebits = 24, .storagebits = 32,
.endianness = IIO_LE, .endianness = IIO_LE,
}, },
.info_mask_separate = .info_mask_separate =
@ -218,7 +218,7 @@ static const struct iio_chan_spec st_press_lps22hb_channels[] = {
.scan_type = { .scan_type = {
.sign = 'u', .sign = 'u',
.realbits = 24, .realbits = 24,
.storagebits = 24, .storagebits = 32,
.endianness = IIO_LE, .endianness = IIO_LE,
}, },
.info_mask_separate = .info_mask_separate =