* Re: [PATCH] iio: ad7152: fix channel assignment for AD7153
[not found] <1314876904-20984-1-git-send-email-michael.hennerich@analog.com>
@ 2011-09-01 13:10 ` Jonathan Cameron
0 siblings, 0 replies; only message in thread
From: Jonathan Cameron @ 2011-09-01 13:10 UTC (permalink / raw)
To: michael.hennerich; +Cc: linux-iio, device-drivers-devel, drivers
On 09/01/11 12:35, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> In case the AD7153 is selected we need to make sure we provide channel info
> for the first capacitance input in both single ended and differential
> configuration.
Good point. I didn't think my original fix through.
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
merged
looks like master.kernel.org is still undergoing reinstall so it'll be local
to me for a while (or to Greg when I've sent it on).
> ---
> drivers/staging/iio/adc/ad7152.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/iio/adc/ad7152.c b/drivers/staging/iio/adc/ad7152.c
> index 42efc37..dac3392 100644
> --- a/drivers/staging/iio/adc/ad7152.c
> +++ b/drivers/staging/iio/adc/ad7152.c
> @@ -440,17 +440,17 @@ static const struct iio_chan_spec ad7152_channels[] = {
> (1 << IIO_CHAN_INFO_SCALE_SEPARATE),
> }, {
> .type = IIO_CAPACITANCE,
> + .differential = 1,
> .indexed = 1,
> - .channel = 1,
> + .channel = 0,
> + .channel2 = 2,
> .info_mask = (1 << IIO_CHAN_INFO_CALIBSCALE_SEPARATE) |
> (1 << IIO_CHAN_INFO_CALIBBIAS_SEPARATE) |
> (1 << IIO_CHAN_INFO_SCALE_SEPARATE),
> }, {
> .type = IIO_CAPACITANCE,
> - .differential = 1,
> .indexed = 1,
> - .channel = 0,
> - .channel2 = 2,
> + .channel = 1,
> .info_mask = (1 << IIO_CHAN_INFO_CALIBSCALE_SEPARATE) |
> (1 << IIO_CHAN_INFO_CALIBBIAS_SEPARATE) |
> (1 << IIO_CHAN_INFO_SCALE_SEPARATE),
^ permalink raw reply [flat|nested] only message in thread