Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1380785
| From | Laxman Dewangan <ldewangan@nvidia.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release} |
| Date | 2016-04-17 19:10 +0200 |
| Message-ID | <roYmT-7Oh-25@gated-at.bofh.it> (permalink) |
| References | <rkTc5-2vd-9@gated-at.bofh.it> <roTGx-3YX-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sunday 17 April 2016 05:30 PM, Jonathan Cameron wrote: > 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() and release it by calling iio_channel_release(). >> >> Add resource managed version (devm_*) of these APIs so that if client >> calls the devm_iio_channel_get() then it need not to release it explicitly, >> it can be done by managed device framework when driver get un-binded. >> >> This reduces the code in error path and also need of .remove callback in >> some cases. >> >> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> > Applied to the togreg branch of iio.git. > I guess the thermal driver use case will hit a cycle or so behind this. > Thanks for applying this. Yes, thermal driver will use this in future release. This is to avoid any syncup between subsystem.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release} Jonathan Cameron <jic23@kernel.org> - 2016-04-17 14:10 +0200
Re: [PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release} Laxman Dewangan <ldewangan@nvidia.com> - 2016-04-17 19:10 +0200
csiph-web