iio: adc: mcp320x: Use devm_* APIs
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 23 Jul 2013 08:58:00 +0000 (09:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:40:41 +0000 (18:40 +0100)
commita726dea54741cf7edfd83175cad3f3483390c308
treec3e577f6102721d767ef02a75ce0fac3cdab3bf2
parent8483aa5e0f0a4bdf8bdc54d83397715c7adb762d
iio: adc: mcp320x: Use devm_* APIs

devm_* APIs are device managed and make code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Oskar Andero <oskar.andero@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/mcp320x.c