Commit f3853ace authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Ben Hutchings

staging:iio:ad7606: Re-add missing scale attribute

commit 279bf2e5 upstream.

Commit 50ac23be ("staging:iio:adc:ad7606 add local define for chan_spec
structures.") accidentally removed the scale info_mask flag. This patch
adds it back again.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2:
 - info_mask was completely gone rather than set to another flag
 - IIO_CHAN_INFO_SCALE_SHARED_BIT was not defined; write it out as a shift]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 8499e79e
...@@ -241,6 +241,7 @@ static const struct attribute_group ad7606_attribute_group = { ...@@ -241,6 +241,7 @@ static const struct attribute_group ad7606_attribute_group = {
.indexed = 1, \ .indexed = 1, \
.channel = num, \ .channel = num, \
.address = num, \ .address = num, \
.info_mask = (1 << IIO_CHAN_INFO_SCALE_SHARED), \
.scan_index = num, \ .scan_index = num, \
.scan_type = IIO_ST('s', 16, 16, 0), \ .scan_type = IIO_ST('s', 16, 16, 0), \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment