Merge tag 'staging-5.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[sfrench/cifs-2.6.git] / drivers / iio / chemical / atlas-sensor.c
index 82d470561ad3c6359f6aa37bb497f61457375230..7b199ce16ecf3555ed170315addbf61ec5ada165 100644 (file)
@@ -194,7 +194,19 @@ static const struct iio_chan_spec atlas_orp_channels[] = {
 };
 
 static const struct iio_chan_spec atlas_do_channels[] = {
-       ATLAS_CONCENTRATION_CHANNEL(0, ATLAS_REG_DO_DATA),
+       {
+               .type = IIO_CONCENTRATION,
+               .address = ATLAS_REG_DO_DATA,
+               .info_mask_separate =
+                       BIT(IIO_CHAN_INFO_RAW) | BIT(IIO_CHAN_INFO_SCALE),
+               .scan_index = 0,
+               .scan_type = {
+                       .sign = 'u',
+                       .realbits = 32,
+                       .storagebits = 32,
+                       .endianness = IIO_BE,
+               },
+       },
        IIO_CHAN_SOFT_TIMESTAMP(1),
        {
                .type = IIO_TEMP,