staging:iio: Do not use bitmasks for channel info addresses
[firefly-linux-kernel-4.4.55.git] / drivers / staging / iio / accel / sca3000_core.c
index 8a46983275bc6106353c45d68e86d59080888597..1586963f56539b3c0be3b3172436dbdc1e1cb176 100644 (file)
@@ -475,7 +475,7 @@ static int sca3000_read_raw(struct iio_dev *indio_dev,
                        (sizeof(*val)*8 - 13);
                mutex_unlock(&st->lock);
                return IIO_VAL_INT;
-       case (1 << IIO_CHAN_INFO_SCALE_SHARED):
+       case IIO_CHAN_INFO_SCALE_SHARED:
                *val = 0;
                if (chan->type == IIO_ACCEL)
                        *val2 = st->info->scale;