On 09/03/2016 05:33 PM, Jonathan Cameron wrote: [...] >> I'm a bit conflicted on what is the best way to resolve this. On one hand >> the correct approach appears to be to simply delay the requesting of the IRQ >> until iio_device_register() has completed. > I'm not keen on the churn that would cause. >> On the other hand it is possible >> to argue that users should be able to expect that it is safe to call APIs >> that take a struct iio_dev if iio_device_alloc() succeeded. > Agreed. This is explicitly allowed in the equivalent in input. > > See input_event in input.c description text. Ok, than lets go with that. Thanks, - Lars -- 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