Skip to content

Commit b598aac

Browse files
larsclausenjic23
authored andcommitted
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>
1 parent 79fa64e commit b598aac

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

‎drivers/staging/iio/meter/ade7758_core.c‎

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ static const struct iio_chan_spec ade7758_channels[] = {
634634
.type = IIO_VOLTAGE,
635635
.indexed = 1,
636636
.channel = 0,
637-
.extend_name = "raw",
638637
.address = AD7758_WT(AD7758_PHASE_A, AD7758_VOLTAGE),
639638
.scan_index = 0,
640639
.scan_type = {
@@ -646,7 +645,6 @@ static const struct iio_chan_spec ade7758_channels[] = {
646645
.type = IIO_CURRENT,
647646
.indexed = 1,
648647
.channel = 0,
649-
.extend_name = "raw",
650648
.address = AD7758_WT(AD7758_PHASE_A, AD7758_CURRENT),
651649
.scan_index = 1,
652650
.scan_type = {
@@ -658,7 +656,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
658656
.type = IIO_POWER,
659657
.indexed = 1,
660658
.channel = 0,
661-
.extend_name = "apparent_raw",
659+
.extend_name = "apparent",
662660
.address = AD7758_WT(AD7758_PHASE_A, AD7758_APP_PWR),
663661
.scan_index = 2,
664662
.scan_type = {
@@ -670,7 +668,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
670668
.type = IIO_POWER,
671669
.indexed = 1,
672670
.channel = 0,
673-
.extend_name = "active_raw",
671+
.extend_name = "active",
674672
.address = AD7758_WT(AD7758_PHASE_A, AD7758_ACT_PWR),
675673
.scan_index = 3,
676674
.scan_type = {
@@ -682,7 +680,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
682680
.type = IIO_POWER,
683681
.indexed = 1,
684682
.channel = 0,
685-
.extend_name = "reactive_raw",
683+
.extend_name = "reactive",
686684
.address = AD7758_WT(AD7758_PHASE_A, AD7758_REACT_PWR),
687685
.scan_index = 4,
688686
.scan_type = {
@@ -694,7 +692,6 @@ static const struct iio_chan_spec ade7758_channels[] = {
694692
.type = IIO_VOLTAGE,
695693
.indexed = 1,
696694
.channel = 1,
697-
.extend_name = "raw",
698695
.address = AD7758_WT(AD7758_PHASE_B, AD7758_VOLTAGE),
699696
.scan_index = 5,
700697
.scan_type = {
@@ -706,7 +703,6 @@ static const struct iio_chan_spec ade7758_channels[] = {
706703
.type = IIO_CURRENT,
707704
.indexed = 1,
708705
.channel = 1,
709-
.extend_name = "raw",
710706
.address = AD7758_WT(AD7758_PHASE_B, AD7758_CURRENT),
711707
.scan_index = 6,
712708
.scan_type = {
@@ -718,7 +714,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
718714
.type = IIO_POWER,
719715
.indexed = 1,
720716
.channel = 1,
721-
.extend_name = "apparent_raw",
717+
.extend_name = "apparent",
722718
.address = AD7758_WT(AD7758_PHASE_B, AD7758_APP_PWR),
723719
.scan_index = 7,
724720
.scan_type = {
@@ -730,7 +726,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
730726
.type = IIO_POWER,
731727
.indexed = 1,
732728
.channel = 1,
733-
.extend_name = "active_raw",
729+
.extend_name = "active",
734730
.address = AD7758_WT(AD7758_PHASE_B, AD7758_ACT_PWR),
735731
.scan_index = 8,
736732
.scan_type = {
@@ -742,7 +738,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
742738
.type = IIO_POWER,
743739
.indexed = 1,
744740
.channel = 1,
745-
.extend_name = "reactive_raw",
741+
.extend_name = "reactive",
746742
.address = AD7758_WT(AD7758_PHASE_B, AD7758_REACT_PWR),
747743
.scan_index = 9,
748744
.scan_type = {
@@ -754,7 +750,6 @@ static const struct iio_chan_spec ade7758_channels[] = {
754750
.type = IIO_VOLTAGE,
755751
.indexed = 1,
756752
.channel = 2,
757-
.extend_name = "raw",
758753
.address = AD7758_WT(AD7758_PHASE_C, AD7758_VOLTAGE),
759754
.scan_index = 10,
760755
.scan_type = {
@@ -766,7 +761,6 @@ static const struct iio_chan_spec ade7758_channels[] = {
766761
.type = IIO_CURRENT,
767762
.indexed = 1,
768763
.channel = 2,
769-
.extend_name = "raw",
770764
.address = AD7758_WT(AD7758_PHASE_C, AD7758_CURRENT),
771765
.scan_index = 11,
772766
.scan_type = {
@@ -778,7 +772,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
778772
.type = IIO_POWER,
779773
.indexed = 1,
780774
.channel = 2,
781-
.extend_name = "apparent_raw",
775+
.extend_name = "apparent",
782776
.address = AD7758_WT(AD7758_PHASE_C, AD7758_APP_PWR),
783777
.scan_index = 12,
784778
.scan_type = {
@@ -790,7 +784,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
790784
.type = IIO_POWER,
791785
.indexed = 1,
792786
.channel = 2,
793-
.extend_name = "active_raw",
787+
.extend_name = "active",
794788
.address = AD7758_WT(AD7758_PHASE_C, AD7758_ACT_PWR),
795789
.scan_index = 13,
796790
.scan_type = {
@@ -802,7 +796,7 @@ static const struct iio_chan_spec ade7758_channels[] = {
802796
.type = IIO_POWER,
803797
.indexed = 1,
804798
.channel = 2,
805-
.extend_name = "reactive_raw",
799+
.extend_name = "reactive",
806800
.address = AD7758_WT(AD7758_PHASE_C, AD7758_REACT_PWR),
807801
.scan_index = 14,
808802
.scan_type = {

0 commit comments

Comments
 (0)