Re: [PATCH 2/3] iio: core: Add devm_ APIs for iio_channel_{get,release}_all

2016-04-17 Thread Jonathan Cameron
On 06/04/16 11:31, Laxman Dewangan wrote: > Some of kernel driver uses the IIO framework to get the sensor > value via ADC or IIO HW driver. The client driver get iio channel > by iio_channel_get_all() and release it by calling > iio_channel_release_all(). > > Add resource managed version

[PATCH 2/3] iio: core: Add devm_ APIs for iio_channel_{get,release}_all

2016-04-06 Thread Laxman Dewangan
Some of kernel driver uses the IIO framework to get the sensor value via ADC or IIO HW driver. The client driver get iio channel by iio_channel_get_all() and release it by calling iio_channel_release_all(). Add resource managed version (devm_*) of these APIs so that if client calls the