staging:iio:ad799x: Set IIO_CHAN_INFO_SCALE mask
[firefly-linux-kernel-4.4.55.git] / drivers / staging / iio / adc / ad799x_core.c
index 49972e1bc1e464c00c0262cf3b0f7fd0799f016e..b7510557d064c461b3dca1431e8c896732373fac 100644 (file)
@@ -465,6 +465,7 @@ static const struct iio_info ad7993_4_7_8_info = {
        .indexed = 1, \
        .channel = (_index), \
        .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
+       .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
        .scan_index = (_index), \
        .scan_type = IIO_ST('u', _realbits, 16, 12 - (_realbits)), \
        .event_mask = (_evmask), \