hwmon: (ntc_thermistor) Use devm_iio_channel_get
authorGuenter Roeck <linux@roeck-us.net>
Mon, 25 Jul 2016 20:27:49 +0000 (13:27 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:14 +0000 (21:34 -0700)
commit640208567660dbe8ad81f3b1c7c90e56fd352317
treeba2d8773ceac425e2a32c07af00997b4330594e4
parentcc00decf0e280953e9067e938ad331f93bda8b40
hwmon: (ntc_thermistor) Use devm_iio_channel_get

Use devm_iio_channel_get() instead of iio_channel_get to simplify error
handling and device removal.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c