Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9d5e5b9 authored by Gregor Boirie's avatar Gregor Boirie Committed by Jonathan Cameron
Browse files

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: default avatarGregor Boirie <gregor.boirie@parrot.com>
Tested-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent e7385de5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 =