Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-07-03 Thread Guenter Roeck
On 07/03/2016 03:47 AM, Jonathan Cameron wrote: On 30/06/16 15:51, Guenter Roeck wrote: On 06/30/2016 06:59 AM, Jonathan Cameron wrote: On 30 June 2016 04:47:25 BST, Guenter Roeck wrote: On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: iio_channel_get_all returns -ENODEV whe

Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-07-03 Thread Jonathan Cameron
On 30/06/16 15:51, Guenter Roeck wrote: > On 06/30/2016 06:59 AM, Jonathan Cameron wrote: >> >> >> On 30 June 2016 04:47:25 BST, Guenter Roeck wrote: >>> On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: iio_channel_get_all returns -ENODEV when it cannot find either >>> phandles

Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-30 Thread Guenter Roeck
On 06/30/2016 06:59 AM, Jonathan Cameron wrote: On 30 June 2016 04:47:25 BST, Guenter Roeck wrote: On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: iio_channel_get_all returns -ENODEV when it cannot find either phandles and properties in the Device Tree or channels whose con

Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-30 Thread Lars-Peter Clausen
On 06/30/2016 03:59 PM, Jonathan Cameron wrote: > > > On 30 June 2016 04:47:25 BST, Guenter Roeck wrote: >> On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: >>> iio_channel_get_all returns -ENODEV when it cannot find either >> phandles and >>> properties in the Device Tree or chan

Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-30 Thread Jonathan Cameron
On 30 June 2016 04:47:25 BST, Guenter Roeck wrote: >On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: >> iio_channel_get_all returns -ENODEV when it cannot find either >phandles and >> properties in the Device Tree or channels whose consumer_dev_name >matches >> iio_hwmon in iio_ma

Re: [3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-29 Thread Guenter Roeck
On Tue, Jun 28, 2016 at 10:18:17AM +0200, Quentin Schulz wrote: > iio_channel_get_all returns -ENODEV when it cannot find either phandles and > properties in the Device Tree or channels whose consumer_dev_name matches > iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers > which

[PATCH 3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-28 Thread Quentin Schulz
iio_channel_get_all returns -ENODEV when it cannot find either phandles and properties in the Device Tree or channels whose consumer_dev_name matches iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers which might be probed after iio_hwmon. It is better to defer the probe of ii