diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 13:45:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-17 15:55:01 -0500 |
commit | 7d7feae706b924e7ab4b773c10741e4acc2bfa55 (patch) | |
tree | 058728bdd0b5e440c6b815e451c6113a75183df2 | |
parent | cb955852a48c29ef7bd847ce993102e2b58295d4 (diff) |
iio:accel:bma180 replaces IIO_ST macro with explicit entries to struct scan_type
The IIO_ST macro no longer covers all the elements of struct scan_type
and has this has lead to some bugs being introduced.
The drivers are easier to follow with this structure being directly
filled so that is now preferred.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
-rw-r--r-- | drivers/iio/accel/bma180.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c index 28b39283bccf..3bec9220df04 100644 --- a/drivers/iio/accel/bma180.c +++ b/drivers/iio/accel/bma180.c | |||
@@ -455,7 +455,12 @@ static const struct iio_chan_spec_ext_info bma180_ext_info[] = { | |||
455 | BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY), \ | 455 | BIT(IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY), \ |
456 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ | 456 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ |
457 | .scan_index = (_index), \ | 457 | .scan_index = (_index), \ |
458 | .scan_type = IIO_ST('s', 14, 16, 2), \ | 458 | .scan_type = { \ |
459 | .sign = 's', \ | ||
460 | .realbits = 14, \ | ||
461 | .storagebits = 16, \ | ||
462 | .shift = 2, \ | ||
463 | }, \ | ||
459 | .ext_info = bma180_ext_info, \ | 464 | .ext_info = bma180_ext_info, \ |
460 | } | 465 | } |
461 | 466 | ||