aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2013-12-11 13:45:00 -0500
committerJonathan Cameron <jic23@kernel.org>2013-12-17 15:55:50 -0500
commite5687979eb287d68d1d3b47e9b025915659e14db (patch)
tree1b6d2b90982e6190b6dbe006763bc5662a327980 /drivers/iio
parent7d7feae706b924e7ab4b773c10741e4acc2bfa55 (diff)
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/magnetometer/mag3110.c6
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[] = {
266 .type = IIO_TEMP, 266 .type = IIO_TEMP,
267 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), 267 .info_mask_separate = BIT(IIO_CHAN_INFO_RAW),
268 .scan_index = 3, 268 .scan_index = 3,
269 .scan_type = IIO_ST('s', 8, 8, 0), 269 .scan_type = {
270 .sign = 's',
271 .realbits = 8,
272 .storagebits = 8,
273 },
270 }, 274 },
271 IIO_CHAN_SOFT_TIMESTAMP(4), 275 IIO_CHAN_SOFT_TIMESTAMP(4),
272}; 276};