diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-02-27 14:31:17 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-03-17 15:49:35 -0400 |
commit | 19a7c88d99c94e232e8dacb585ca359f0f0d94b6 (patch) | |
tree | 1adbc172cd4561865b7f26fa776154b5718f7713 /drivers/iio/imu | |
parent | e1865aa17049f168bf566d6648be851d40588a87 (diff) |
iio:imu:adis16400 move to info_mask_(shared_by_type/separate)
The original info_mask is going away in favour of the broken out versions.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/iio/imu')
-rw-r--r-- | drivers/iio/imu/adis16400_core.c | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c index b7f215eab5de..f60591f0b925 100644 --- a/drivers/iio/imu/adis16400_core.c +++ b/drivers/iio/imu/adis16400_core.c | |||
@@ -484,8 +484,8 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
484 | .indexed = 1, \ | 484 | .indexed = 1, \ |
485 | .channel = 0, \ | 485 | .channel = 0, \ |
486 | .extend_name = name, \ | 486 | .extend_name = name, \ |
487 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 487 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ |
488 | IIO_CHAN_INFO_SCALE_SEPARATE_BIT, \ | 488 | BIT(IIO_CHAN_INFO_SCALE), \ |
489 | .address = (addr), \ | 489 | .address = (addr), \ |
490 | .scan_index = (si), \ | 490 | .scan_index = (si), \ |
491 | .scan_type = { \ | 491 | .scan_type = { \ |
@@ -507,10 +507,10 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
507 | .type = IIO_ANGL_VEL, \ | 507 | .type = IIO_ANGL_VEL, \ |
508 | .modified = 1, \ | 508 | .modified = 1, \ |
509 | .channel2 = IIO_MOD_ ## mod, \ | 509 | .channel2 = IIO_MOD_ ## mod, \ |
510 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 510 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ |
511 | IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT | \ | 511 | BIT(IIO_CHAN_INFO_CALIBBIAS), \ |
512 | IIO_CHAN_INFO_SCALE_SHARED_BIT | \ | 512 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | \ |
513 | IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SHARED_BIT, \ | 513 | BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY), \ |
514 | .address = addr, \ | 514 | .address = addr, \ |
515 | .scan_index = ADIS16400_SCAN_GYRO_ ## mod, \ | 515 | .scan_index = ADIS16400_SCAN_GYRO_ ## mod, \ |
516 | .scan_type = { \ | 516 | .scan_type = { \ |
@@ -526,10 +526,10 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
526 | .type = IIO_ACCEL, \ | 526 | .type = IIO_ACCEL, \ |
527 | .modified = 1, \ | 527 | .modified = 1, \ |
528 | .channel2 = IIO_MOD_ ## mod, \ | 528 | .channel2 = IIO_MOD_ ## mod, \ |
529 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 529 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ |
530 | IIO_CHAN_INFO_CALIBBIAS_SEPARATE_BIT | \ | 530 | BIT(IIO_CHAN_INFO_CALIBBIAS), \ |
531 | IIO_CHAN_INFO_SCALE_SHARED_BIT | \ | 531 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | \ |
532 | IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SHARED_BIT, \ | 532 | BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY), \ |
533 | .address = (addr), \ | 533 | .address = (addr), \ |
534 | .scan_index = ADIS16400_SCAN_ACC_ ## mod, \ | 534 | .scan_index = ADIS16400_SCAN_ACC_ ## mod, \ |
535 | .scan_type = { \ | 535 | .scan_type = { \ |
@@ -545,9 +545,9 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
545 | .type = IIO_MAGN, \ | 545 | .type = IIO_MAGN, \ |
546 | .modified = 1, \ | 546 | .modified = 1, \ |
547 | .channel2 = IIO_MOD_ ## mod, \ | 547 | .channel2 = IIO_MOD_ ## mod, \ |
548 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 548 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ |
549 | IIO_CHAN_INFO_SCALE_SHARED_BIT | \ | 549 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | \ |
550 | IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SHARED_BIT, \ | 550 | BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY), \ |
551 | .address = (addr), \ | 551 | .address = (addr), \ |
552 | .scan_index = ADIS16400_SCAN_MAGN_ ## mod, \ | 552 | .scan_index = ADIS16400_SCAN_MAGN_ ## mod, \ |
553 | .scan_type = { \ | 553 | .scan_type = { \ |
@@ -568,10 +568,11 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
568 | .indexed = 1, \ | 568 | .indexed = 1, \ |
569 | .channel = 0, \ | 569 | .channel = 0, \ |
570 | .extend_name = ADIS16400_MOD_TEMP_NAME_ ## mod, \ | 570 | .extend_name = ADIS16400_MOD_TEMP_NAME_ ## mod, \ |
571 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 571 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ |
572 | IIO_CHAN_INFO_OFFSET_SEPARATE_BIT | \ | 572 | BIT(IIO_CHAN_INFO_OFFSET) | \ |
573 | IIO_CHAN_INFO_SCALE_SEPARATE_BIT | \ | 573 | BIT(IIO_CHAN_INFO_SCALE), \ |
574 | IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY_SHARED_BIT, \ | 574 | .info_mask_shared_by_type = \ |
575 | BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY), \ | ||
575 | .address = (addr), \ | 576 | .address = (addr), \ |
576 | .scan_index = ADIS16350_SCAN_TEMP_ ## mod, \ | 577 | .scan_index = ADIS16350_SCAN_TEMP_ ## mod, \ |
577 | .scan_type = { \ | 578 | .scan_type = { \ |
@@ -587,9 +588,9 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
587 | .type = IIO_TEMP, \ | 588 | .type = IIO_TEMP, \ |
588 | .indexed = 1, \ | 589 | .indexed = 1, \ |
589 | .channel = 0, \ | 590 | .channel = 0, \ |
590 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 591 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | \ |
591 | IIO_CHAN_INFO_OFFSET_SEPARATE_BIT | \ | 592 | BIT(IIO_CHAN_INFO_OFFSET) | \ |
592 | IIO_CHAN_INFO_SCALE_SEPARATE_BIT, \ | 593 | BIT(IIO_CHAN_INFO_SCALE), \ |
593 | .address = (addr), \ | 594 | .address = (addr), \ |
594 | .scan_index = ADIS16350_SCAN_TEMP_X, \ | 595 | .scan_index = ADIS16350_SCAN_TEMP_X, \ |
595 | .scan_type = { \ | 596 | .scan_type = { \ |
@@ -605,8 +606,8 @@ static int adis16400_read_raw(struct iio_dev *indio_dev, | |||
605 | .type = IIO_INCLI, \ | 606 | .type = IIO_INCLI, \ |
606 | .modified = 1, \ | 607 | .modified = 1, \ |
607 | .channel2 = IIO_MOD_ ## mod, \ | 608 | .channel2 = IIO_MOD_ ## mod, \ |
608 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | \ | 609 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ |
609 | IIO_CHAN_INFO_SCALE_SHARED_BIT, \ | 610 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ |
610 | .address = (addr), \ | 611 | .address = (addr), \ |
611 | .scan_index = ADIS16300_SCAN_INCLI_ ## mod, \ | 612 | .scan_index = ADIS16300_SCAN_INCLI_ ## mod, \ |
612 | .scan_type = { \ | 613 | .scan_type = { \ |
@@ -646,8 +647,8 @@ static const struct iio_chan_spec adis16448_channels[] = { | |||
646 | ADIS16400_MAGN_CHAN(Z, ADIS16400_ZMAGN_OUT, 16), | 647 | ADIS16400_MAGN_CHAN(Z, ADIS16400_ZMAGN_OUT, 16), |
647 | { | 648 | { |
648 | .type = IIO_PRESSURE, | 649 | .type = IIO_PRESSURE, |
649 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT | | 650 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), |
650 | IIO_CHAN_INFO_SCALE_SHARED_BIT, | 651 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), |
651 | .address = ADIS16448_BARO_OUT, | 652 | .address = ADIS16448_BARO_OUT, |
652 | .scan_index = ADIS16400_SCAN_BARO, | 653 | .scan_index = ADIS16400_SCAN_BARO, |
653 | .scan_type = IIO_ST('s', 16, 16, 0), | 654 | .scan_type = IIO_ST('s', 16, 16, 0), |