diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-10-29 01:59:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-11-09 13:12:33 +0100 |
commit | 911bdc68ec7fda5ae34fd99c33c2924edb4f8bab (patch) | |
tree | 016ce11e86eefed16e4dde05d7850196ee749c67 /drivers/iio/magnetometer | |
parent | iio: Fix sign extension table in mcp3422 driver (diff) | |
download | linux-911bdc68ec7fda5ae34fd99c33c2924edb4f8bab.tar.xz linux-911bdc68ec7fda5ae34fd99c33c2924edb4f8bab.zip |
iio: Fix mag3110 scan_type
last argument of IIO_ST is shift, not endianness
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r-- | drivers/iio/magnetometer/mag3110.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/mag3110.c b/drivers/iio/magnetometer/mag3110.c index 783c5b417356..becf54496967 100644 --- a/drivers/iio/magnetometer/mag3110.c +++ b/drivers/iio/magnetometer/mag3110.c @@ -250,7 +250,12 @@ done: .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SAMP_FREQ) | \ BIT(IIO_CHAN_INFO_SCALE), \ .scan_index = idx, \ - .scan_type = IIO_ST('s', 16, 16, IIO_BE), \ + .scan_type = { \ + .sign = 's', \ + .realbits = 16, \ + .storagebits = 16, \ + .endianness = IIO_BE, \ + }, \ } static const struct iio_chan_spec mag3110_channels[] = { |