]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/staging/iio/impedance-analyzer/ad5933.c
staging:iio: Switch the channel masks to bitmaps so as to allow for more channels.
[mirror_ubuntu-bionic-kernel.git] / drivers / staging / iio / impedance-analyzer / ad5933.c
index 1c1cd8eac9de4aa5bcc8b5f8fab70b8a4ad9c4d1..e199bbed75e953bdc20da925715b0d8d5c8137c9 100644 (file)
@@ -640,7 +640,7 @@ static void ad5933_work(struct work_struct *work)
 
        if (status & AD5933_STAT_DATA_VALID) {
                ad5933_i2c_read(st->client,
-                               (ring->scan_mask & (1 << 0)) ?
+                               test_bit(1, ring->scan_mask) ?
                                AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
                                ring->scan_count * 2, (u8 *)buf);