iio: pressure: mpl3115: do not rely on structure field ordering
[firefly-linux-kernel-4.4.55.git] / drivers / iio / pressure / mpl3115.c
index 01b2e0b1887881910874a43fb7efec4c4298a609..0f5b8767ec2e6b81a427f92695ba4f8025a25b46 100644 (file)
@@ -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',