iio: pressure: mpl3115: do not rely on structure field ordering
am: 3584716db1
Change-Id: I1d115f813e9101c65802745e6ac5c9b9b09237f0
This commit is contained in:
commit
24764f437a
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ static const struct iio_chan_spec mpl3115_channels[] = {
|
|||
{
|
||||
.type = IIO_PRESSURE,
|
||||
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
|
||||
BIT(IIO_CHAN_INFO_SCALE),
|
||||
.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),
|
||||
.scan_index = 0,
|
||||
.scan_type = {
|
||||
.sign = 'u',
|
||||
|
@ -195,7 +195,7 @@ static const struct iio_chan_spec mpl3115_channels[] = {
|
|||
{
|
||||
.type = IIO_TEMP,
|
||||
.info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
|
||||
BIT(IIO_CHAN_INFO_SCALE),
|
||||
.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),
|
||||
.scan_index = 1,
|
||||
.scan_type = {
|
||||
.sign = 's',
|
||||
|
|
Loading…
Add table
Reference in a new issue