On 06/04/16 11:31, Laxman Dewangan wrote:
Some of kernel driver uses the IIO framework to get the sensorApplied to the togreg branch of iio.git.
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@xxxxxxxxxx>
I guess the thermal driver use case will hit a cycle or so behind this.