diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-11-04 12:03:16 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-11-05 13:33:48 -0500 |
commit | b598aacc29331e7e638cd509108600e916c6331b (patch) | |
tree | 3734e0c18a03660c8725f2a1487a554e7f573c42 | |
parent | 79fa64eb2ee8ccb4bcad7f54caa2699730b10b22 (diff) |
staging:iio:ade7758: Remove "raw" from channel name
"raw" is a property of a channel, but should not be part of the name of
channel.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/meter/ade7758_core.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/staging/iio/meter/ade7758_core.c b/drivers/staging/iio/meter/ade7758_core.c index 9eb79b7cb420..fb373b89dcc2 100644 --- a/drivers/staging/iio/meter/ade7758_core.c +++ b/drivers/staging/iio/meter/ade7758_core.c | |||
@@ -634,7 +634,6 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
634 | .type = IIO_VOLTAGE, | 634 | .type = IIO_VOLTAGE, |
635 | .indexed = 1, | 635 | .indexed = 1, |
636 | .channel = 0, | 636 | .channel = 0, |
637 | .extend_name = "raw", | ||
638 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_VOLTAGE), | 637 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_VOLTAGE), |
639 | .scan_index = 0, | 638 | .scan_index = 0, |
640 | .scan_type = { | 639 | .scan_type = { |
@@ -646,7 +645,6 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
646 | .type = IIO_CURRENT, | 645 | .type = IIO_CURRENT, |
647 | .indexed = 1, | 646 | .indexed = 1, |
648 | .channel = 0, | 647 | .channel = 0, |
649 | .extend_name = "raw", | ||
650 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_CURRENT), | 648 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_CURRENT), |
651 | .scan_index = 1, | 649 | .scan_index = 1, |
652 | .scan_type = { | 650 | .scan_type = { |
@@ -658,7 +656,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
658 | .type = IIO_POWER, | 656 | .type = IIO_POWER, |
659 | .indexed = 1, | 657 | .indexed = 1, |
660 | .channel = 0, | 658 | .channel = 0, |
661 | .extend_name = "apparent_raw", | 659 | .extend_name = "apparent", |
662 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_APP_PWR), | 660 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_APP_PWR), |
663 | .scan_index = 2, | 661 | .scan_index = 2, |
664 | .scan_type = { | 662 | .scan_type = { |
@@ -670,7 +668,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
670 | .type = IIO_POWER, | 668 | .type = IIO_POWER, |
671 | .indexed = 1, | 669 | .indexed = 1, |
672 | .channel = 0, | 670 | .channel = 0, |
673 | .extend_name = "active_raw", | 671 | .extend_name = "active", |
674 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_ACT_PWR), | 672 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_ACT_PWR), |
675 | .scan_index = 3, | 673 | .scan_index = 3, |
676 | .scan_type = { | 674 | .scan_type = { |
@@ -682,7 +680,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
682 | .type = IIO_POWER, | 680 | .type = IIO_POWER, |
683 | .indexed = 1, | 681 | .indexed = 1, |
684 | .channel = 0, | 682 | .channel = 0, |
685 | .extend_name = "reactive_raw", | 683 | .extend_name = "reactive", |
686 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_REACT_PWR), | 684 | .address = AD7758_WT(AD7758_PHASE_A, AD7758_REACT_PWR), |
687 | .scan_index = 4, | 685 | .scan_index = 4, |
688 | .scan_type = { | 686 | .scan_type = { |
@@ -694,7 +692,6 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
694 | .type = IIO_VOLTAGE, | 692 | .type = IIO_VOLTAGE, |
695 | .indexed = 1, | 693 | .indexed = 1, |
696 | .channel = 1, | 694 | .channel = 1, |
697 | .extend_name = "raw", | ||
698 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_VOLTAGE), | 695 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_VOLTAGE), |
699 | .scan_index = 5, | 696 | .scan_index = 5, |
700 | .scan_type = { | 697 | .scan_type = { |
@@ -706,7 +703,6 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
706 | .type = IIO_CURRENT, | 703 | .type = IIO_CURRENT, |
707 | .indexed = 1, | 704 | .indexed = 1, |
708 | .channel = 1, | 705 | .channel = 1, |
709 | .extend_name = "raw", | ||
710 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_CURRENT), | 706 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_CURRENT), |
711 | .scan_index = 6, | 707 | .scan_index = 6, |
712 | .scan_type = { | 708 | .scan_type = { |
@@ -718,7 +714,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
718 | .type = IIO_POWER, | 714 | .type = IIO_POWER, |
719 | .indexed = 1, | 715 | .indexed = 1, |
720 | .channel = 1, | 716 | .channel = 1, |
721 | .extend_name = "apparent_raw", | 717 | .extend_name = "apparent", |
722 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_APP_PWR), | 718 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_APP_PWR), |
723 | .scan_index = 7, | 719 | .scan_index = 7, |
724 | .scan_type = { | 720 | .scan_type = { |
@@ -730,7 +726,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
730 | .type = IIO_POWER, | 726 | .type = IIO_POWER, |
731 | .indexed = 1, | 727 | .indexed = 1, |
732 | .channel = 1, | 728 | .channel = 1, |
733 | .extend_name = "active_raw", | 729 | .extend_name = "active", |
734 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_ACT_PWR), | 730 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_ACT_PWR), |
735 | .scan_index = 8, | 731 | .scan_index = 8, |
736 | .scan_type = { | 732 | .scan_type = { |
@@ -742,7 +738,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
742 | .type = IIO_POWER, | 738 | .type = IIO_POWER, |
743 | .indexed = 1, | 739 | .indexed = 1, |
744 | .channel = 1, | 740 | .channel = 1, |
745 | .extend_name = "reactive_raw", | 741 | .extend_name = "reactive", |
746 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_REACT_PWR), | 742 | .address = AD7758_WT(AD7758_PHASE_B, AD7758_REACT_PWR), |
747 | .scan_index = 9, | 743 | .scan_index = 9, |
748 | .scan_type = { | 744 | .scan_type = { |
@@ -754,7 +750,6 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
754 | .type = IIO_VOLTAGE, | 750 | .type = IIO_VOLTAGE, |
755 | .indexed = 1, | 751 | .indexed = 1, |
756 | .channel = 2, | 752 | .channel = 2, |
757 | .extend_name = "raw", | ||
758 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_VOLTAGE), | 753 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_VOLTAGE), |
759 | .scan_index = 10, | 754 | .scan_index = 10, |
760 | .scan_type = { | 755 | .scan_type = { |
@@ -766,7 +761,6 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
766 | .type = IIO_CURRENT, | 761 | .type = IIO_CURRENT, |
767 | .indexed = 1, | 762 | .indexed = 1, |
768 | .channel = 2, | 763 | .channel = 2, |
769 | .extend_name = "raw", | ||
770 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_CURRENT), | 764 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_CURRENT), |
771 | .scan_index = 11, | 765 | .scan_index = 11, |
772 | .scan_type = { | 766 | .scan_type = { |
@@ -778,7 +772,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
778 | .type = IIO_POWER, | 772 | .type = IIO_POWER, |
779 | .indexed = 1, | 773 | .indexed = 1, |
780 | .channel = 2, | 774 | .channel = 2, |
781 | .extend_name = "apparent_raw", | 775 | .extend_name = "apparent", |
782 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_APP_PWR), | 776 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_APP_PWR), |
783 | .scan_index = 12, | 777 | .scan_index = 12, |
784 | .scan_type = { | 778 | .scan_type = { |
@@ -790,7 +784,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
790 | .type = IIO_POWER, | 784 | .type = IIO_POWER, |
791 | .indexed = 1, | 785 | .indexed = 1, |
792 | .channel = 2, | 786 | .channel = 2, |
793 | .extend_name = "active_raw", | 787 | .extend_name = "active", |
794 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_ACT_PWR), | 788 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_ACT_PWR), |
795 | .scan_index = 13, | 789 | .scan_index = 13, |
796 | .scan_type = { | 790 | .scan_type = { |
@@ -802,7 +796,7 @@ static const struct iio_chan_spec ade7758_channels[] = { | |||
802 | .type = IIO_POWER, | 796 | .type = IIO_POWER, |
803 | .indexed = 1, | 797 | .indexed = 1, |
804 | .channel = 2, | 798 | .channel = 2, |
805 | .extend_name = "reactive_raw", | 799 | .extend_name = "reactive", |
806 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_REACT_PWR), | 800 | .address = AD7758_WT(AD7758_PHASE_C, AD7758_REACT_PWR), |
807 | .scan_index = 14, | 801 | .scan_index = 14, |
808 | .scan_type = { | 802 | .scan_type = { |