Re: [PATCH] iio: adc: ti-ads1015: add datasheet names

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

 



On Wed, May 18, 2016 at 1:02 AM, Matt Ranostay <matt.ranostay@xxxxxxxxx> wrote:
> Add datasheet names for ADC channels to allow iio consumers access.
>
> Cc: daniel.baluta@xxxxxxxxx

For next patches use the full convention: name + email.

Daniel Baluta <daniel.baluta@xxxxxxxxx>

> Signed-off-by: Matt Ranostay <matt.ranostay@xxxxxxxxx>

Looks good to me.

Acked-by: Daniel Baluta <daniel.baluta@xxxxxxxxx>

> ---
>  NOTES: Requires previous ADS1115 patchst applied first
>
>  drivers/iio/adc/ti-ads1015.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
> index a835423..8be192a 100644
> --- a/drivers/iio/adc/ti-ads1015.c
> +++ b/drivers/iio/adc/ti-ads1015.c
> @@ -110,6 +110,7 @@ static const struct {
>                 .shift = 4,                                     \
>                 .endianness = IIO_CPU,                          \
>         },                                                      \
> +       .datasheet_name = "AIN"#_chan,                          \
>  }
>
>  #define ADS1015_V_DIFF_CHAN(_chan, _chan2, _addr) {            \
> @@ -130,6 +131,7 @@ static const struct {
>                 .shift = 4,                                     \
>                 .endianness = IIO_CPU,                          \
>         },                                                      \
> +       .datasheet_name = "AIN"#_chan"-AIN"#_chan2,             \
>  }
>
>  #define ADS1115_V_CHAN(_chan, _addr) {                         \
> @@ -147,6 +149,7 @@ static const struct {
>                 .storagebits = 16,                              \
>                 .endianness = IIO_CPU,                          \
>         },                                                      \
> +       .datasheet_name = "AIN"#_chan,                          \
>  }
>
>  #define ADS1115_V_DIFF_CHAN(_chan, _chan2, _addr) {            \
> @@ -166,6 +169,7 @@ static const struct {
>                 .storagebits = 16,                              \
>                 .endianness = IIO_CPU,                          \
>         },                                                      \
> +       .datasheet_name = "AIN"#_chan"-AIN"#_chan2,             \
>  }
>
>  struct ads1015_data {
> --
> 2.7.4
>
> --
> 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
--
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