]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:iio:ad7606: Re-add missing scale attribute
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 5 Jun 2012 16:16:31 +0000 (18:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:43 +0000 (09:04 -0700)
commit 279bf2e57c30c9a4482b2b6ede11b31c41e35e78 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: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[herton: Backported to 3.4: info_mask was not used yet with another flag]
Signed-off-by: Herton R. Krzesinski <herton@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7606_core.c

index 97e8d3d4471e77b6109d79d92c20acdfa009ee61..7322c168be404ada0786ad4989ab71a3de450c72 100644 (file)
@@ -235,6 +235,7 @@ static const struct attribute_group ad7606_attribute_group_range = {
                .indexed = 1,                           \
                .channel = num,                         \
                .address = num,                         \
+               .info_mask = IIO_CHAN_INFO_SCALE_SHARED_BIT, \
                .scan_index = num,                      \
                .scan_type = IIO_ST('s', 16, 16, 0),    \
        }