diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-04-15 12:41:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 19:38:20 -0400 |
commit | 6246577071ac4b29579203e7c22a7f383cf4f9e8 (patch) | |
tree | a8dfe7525a8cc732c5439bc385c101eceddbe5fe /drivers/staging/iio | |
parent | 4d9948b36386ead790fecc0aad932a009dc51c90 (diff) |
staging:iio:resolver Add IIO_CHAN_INFO_RAW entries to all drivers.
Precursor to making value read / write attribute optional.
No processed values in resolvers at the moment.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/resolver/ad2s1200.c | 2 | ||||
-rw-r--r-- | drivers/staging/iio/resolver/ad2s1210.c | 2 | ||||
-rw-r--r-- | drivers/staging/iio/resolver/ad2s90.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers/staging/iio/resolver/ad2s1200.c index d8ce854c189..0465e5dff23 100644 --- a/drivers/staging/iio/resolver/ad2s1200.c +++ b/drivers/staging/iio/resolver/ad2s1200.c | |||
@@ -85,10 +85,12 @@ static const struct iio_chan_spec ad2s1200_channels[] = { | |||
85 | .type = IIO_ANGL, | 85 | .type = IIO_ANGL, |
86 | .indexed = 1, | 86 | .indexed = 1, |
87 | .channel = 0, | 87 | .channel = 0, |
88 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, | ||
88 | }, { | 89 | }, { |
89 | .type = IIO_ANGL_VEL, | 90 | .type = IIO_ANGL_VEL, |
90 | .indexed = 1, | 91 | .indexed = 1, |
91 | .channel = 0, | 92 | .channel = 0, |
93 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, | ||
92 | } | 94 | } |
93 | }; | 95 | }; |
94 | 96 | ||
diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index c439fcf72be..c6ced163105 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c | |||
@@ -580,10 +580,12 @@ static struct iio_chan_spec ad2s1210_channels[] = { | |||
580 | .type = IIO_ANGL, | 580 | .type = IIO_ANGL, |
581 | .indexed = 1, | 581 | .indexed = 1, |
582 | .channel = 0, | 582 | .channel = 0, |
583 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, | ||
583 | }, { | 584 | }, { |
584 | .type = IIO_ANGL_VEL, | 585 | .type = IIO_ANGL_VEL, |
585 | .indexed = 1, | 586 | .indexed = 1, |
586 | .channel = 0, | 587 | .channel = 0, |
588 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, | ||
587 | } | 589 | } |
588 | }; | 590 | }; |
589 | 591 | ||
diff --git a/drivers/staging/iio/resolver/ad2s90.c b/drivers/staging/iio/resolver/ad2s90.c index 2a86f582ddf..20ca5298cdf 100644 --- a/drivers/staging/iio/resolver/ad2s90.c +++ b/drivers/staging/iio/resolver/ad2s90.c | |||
@@ -55,6 +55,7 @@ static const struct iio_chan_spec ad2s90_chan = { | |||
55 | .type = IIO_ANGL, | 55 | .type = IIO_ANGL, |
56 | .indexed = 1, | 56 | .indexed = 1, |
57 | .channel = 0, | 57 | .channel = 0, |
58 | .info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT, | ||
58 | }; | 59 | }; |
59 | 60 | ||
60 | static int __devinit ad2s90_probe(struct spi_device *spi) | 61 | static int __devinit ad2s90_probe(struct spi_device *spi) |