diff options
author | Jonathan Cameron <jic23@kernel.org> | 2013-12-11 22:45:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-12-18 00:55:50 +0400 |
commit | e5687979eb287d68d1d3b47e9b025915659e14db (patch) | |
tree | 1b6d2b90982e6190b6dbe006763bc5662a327980 | |
parent | 7d7feae706b924e7ab4b773c10741e4acc2bfa55 (diff) | |
download | linux-e5687979eb287d68d1d3b47e9b025915659e14db.tar.xz |
iio:mag:mag3110 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/magnetometer/mag3110.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/mag3110.c b/drivers/iio/magnetometer/mag3110.c index becf54496967..4b65b6d3bdb1 100644 --- a/drivers/iio/magnetometer/mag3110.c +++ b/drivers/iio/magnetometer/mag3110.c @@ -266,7 +266,11 @@ static const struct iio_chan_spec mag3110_channels[] = { .type = IIO_TEMP, .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), .scan_index = 3, - .scan_type = IIO_ST('s', 8, 8, 0), + .scan_type = { + .sign = 's', + .realbits = 8, + .storagebits = 8, + }, }, IIO_CHAN_SOFT_TIMESTAMP(4), }; |