iio:accel:bma180: Make LOW_PASS_FILTER_3DB_FREQUENCY shared_by_type
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 1 Oct 2014 20:37:00 +0000 (21:37 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 15 Feb 2014 11:05:02 +0000 (11:05 +0000)
the property is not per-channel, but shared by type

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Kravchenko Oleksandr <x0199363@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bma180.c

index bfec313492b3f0de16c8aa26bfb5b77ba9160473..a7e68c81f89dd7203d4e2cc91f1872015801baf0 100644 (file)
@@ -451,9 +451,9 @@ static const struct iio_chan_spec_ext_info bma180_ext_info[] = {
        .type = IIO_ACCEL,                                              \
        .modified = 1,                                                  \
        .channel2 = IIO_MOD_##_axis,                                    \
-       .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |                  \
+       .info_mask_separate = BIT(IIO_CHAN_INFO_RAW),                   \
+       .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) |          \
                BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY),       \
-       .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE),           \
        .scan_index = AXIS_##_axis,                                     \
        .scan_type = {                                                  \
                .sign = 's',                                            \