RE: [PATCH 16/16] staging:iio:adc:ad7887 stop using IIO_CHAN macro.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Cameron wrote on 2011-09-23:
> It's going away.
>
> Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx>

Acked-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx>

> ---
>  drivers/staging/iio/adc/ad7887_core.c |   26 ++++++++++++++++++-------
>  - 1 files changed, 18 insertions(+), 8 deletions(-)
> diff --git a/drivers/staging/iio/adc/ad7887_core.c
> b/drivers/staging/iio/adc/ad7887_core.c index 71af6cb..37e6cc9 100644
> --- a/drivers/staging/iio/adc/ad7887_core.c +++
> b/drivers/staging/iio/adc/ad7887_core.c @@ -71,14 +71,24 @@ static const
> struct ad7887_chip_info ad7887_chip_info_tbl[] = {
>        * More devices added in future
>        */
>       [ID_AD7887] = {
> -             .channel[0] = IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 1, 0,
> -                                    (1 << IIO_CHAN_INFO_SCALE_SHARED),
> -                                    1, 1, IIO_ST('u', 12, 16, 0), 0),
> -
> -             .channel[1] = IIO_CHAN(IIO_VOLTAGE, 0, 1, 0, NULL, 0, 0,
> -                                    (1 << IIO_CHAN_INFO_SCALE_SHARED),
> -                                    0, 0, IIO_ST('u', 12, 16, 0), 0),
> -
> +             .channel[0] = {
> +                     .type = IIO_VOLTAGE,
> +                     .indexed = 1,
> +                     .channel = 1,
> +                     .info_mask = (1 << IIO_CHAN_INFO_SCALE_SHARED),
> +                     .address = 1,
> +                     .scan_index = 1,
> +                     .scan_type = IIO_ST('u', 12, 16, 0),
> +             },
> +             .channel[1] = {
> +                     .type = IIO_VOLTAGE,
> +                     .indexed = 1,
> +                     .channel = 0,
> +                     .info_mask = (1 << IIO_CHAN_INFO_SCALE_SHARED),
> +                     .address = 0,
> +                     .scan_index = 0,
> +                     .scan_type = IIO_ST('u', 12, 16, 0),
> +             },
>               .channel[2] = IIO_CHAN_SOFT_TIMESTAMP(2),
>               .int_vref_mv = 2500,
>       },

Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif



--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux