* [PATCH] iio: adc: ti-ads1015: add indio_dev->dev.of_node reference
@ 2016-07-01 2:33 Matt Ranostay
2016-07-01 13:34 ` Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: Matt Ranostay @ 2016-07-01 2:33 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, Matt Ranostay, Daniel Baluta
Add the pointer to the device tree node of the ADC so that iio
consumers can reference the respective channels.
Cc: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
---
drivers/iio/adc/ti-ads1015.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
index 8be192a84893..6f75a4aa67c1 100644
--- a/drivers/iio/adc/ti-ads1015.c
+++ b/drivers/iio/adc/ti-ads1015.c
@@ -585,6 +585,7 @@ static int ads1015_probe(struct i2c_client *client,
mutex_init(&data->lock);
indio_dev->dev.parent = &client->dev;
+ indio_dev->dev.of_node = client->dev.of_node;
indio_dev->name = ADS1015_DRV_NAME;
indio_dev->modes = INDIO_DIRECT_MODE;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1015: add indio_dev->dev.of_node reference
2016-07-01 2:33 [PATCH] iio: adc: ti-ads1015: add indio_dev->dev.of_node reference Matt Ranostay
@ 2016-07-01 13:34 ` Daniel Baluta
2016-07-03 12:13 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2016-07-01 13:34 UTC (permalink / raw)
To: Matt Ranostay; +Cc: linux-iio, Jonathan Cameron, Daniel Baluta
On Fri, Jul 1, 2016 at 5:33 AM, Matt Ranostay <mranostay@gmail.com> wrote:
> Add the pointer to the device tree node of the ADC so that iio
> consumers can reference the respective channels.
>
> Cc: Daniel Baluta <daniel.baluta@intel.com>
> Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
> ---
> drivers/iio/adc/ti-ads1015.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
> index 8be192a84893..6f75a4aa67c1 100644
> --- a/drivers/iio/adc/ti-ads1015.c
> +++ b/drivers/iio/adc/ti-ads1015.c
> @@ -585,6 +585,7 @@ static int ads1015_probe(struct i2c_client *client,
> mutex_init(&data->lock);
>
> indio_dev->dev.parent = &client->dev;
> + indio_dev->dev.of_node = client->dev.of_node;
> indio_dev->name = ADS1015_DRV_NAME;
> indio_dev->modes = INDIO_DIRECT_MODE;
>
> --
> 2.7.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: adc: ti-ads1015: add indio_dev->dev.of_node reference
2016-07-01 13:34 ` Daniel Baluta
@ 2016-07-03 12:13 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2016-07-03 12:13 UTC (permalink / raw)
To: Daniel Baluta, Matt Ranostay; +Cc: linux-iio
On 01/07/16 14:34, Daniel Baluta wrote:
> On Fri, Jul 1, 2016 at 5:33 AM, Matt Ranostay <mranostay@gmail.com> wrote:
>> Add the pointer to the device tree node of the ADC so that iio
>> consumers can reference the respective channels.
>>
>> Cc: Daniel Baluta <daniel.baluta@intel.com>
>> Signed-off-by: Matt Ranostay <mranostay@gmail.com>
>
> Acked-by: Daniel Baluta <daniel.baluta@intel.com>
I've applied this to the togreg branch of iio.git.
Arguably it was never right before so no regression, but
if you want a backport to stable we can probably argue it as trivial
and useful.
Thanks,
Jonathan
>
>
>
>> ---
>> drivers/iio/adc/ti-ads1015.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
>> index 8be192a84893..6f75a4aa67c1 100644
>> --- a/drivers/iio/adc/ti-ads1015.c
>> +++ b/drivers/iio/adc/ti-ads1015.c
>> @@ -585,6 +585,7 @@ static int ads1015_probe(struct i2c_client *client,
>> mutex_init(&data->lock);
>>
>> indio_dev->dev.parent = &client->dev;
>> + indio_dev->dev.of_node = client->dev.of_node;
>> indio_dev->name = ADS1015_DRV_NAME;
>> indio_dev->modes = INDIO_DIRECT_MODE;
>>
>> --
>> 2.7.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-03 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-01 2:33 [PATCH] iio: adc: ti-ads1015: add indio_dev->dev.of_node reference Matt Ranostay
2016-07-01 13:34 ` Daniel Baluta
2016-07-03 12:13 ` Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.