thermal/drivers/qcom-spmi: Use devm_iio_channel_get
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 19 Oct 2017 17:06:00 +0000 (19:06 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:17 +0000 (19:32 -0700)
commit7a4ca51b704038d1d7f5e31177a7fa4d9dcb839e
treebefd9504423165d7265cb3a6421120fd40978087
parentd377aba193111419341fabaec6cab92df25e1b28
thermal/drivers/qcom-spmi: Use devm_iio_channel_get

The iio_channel_get() function has now its devm_ version.

Use it and remove all the rollback code for iio_channel_release() as well
as the .remove ops.

[Compiled tested only]

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom-spmi-temp-alarm.c