iio: adc: viperboard_adc: Use devm_iio_device_alloc
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:42 +0000 (18:40 +0100)
commit3ef50f8830ecb911c3ae3faec4f2832d5ff55bff
tree8faf8b3494a2b4ba3f797c9ae7693f81105bb4cc
parent99e94b6d567188275b1269d4bd72d78cc10df8c3
iio: adc: viperboard_adc: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/viperboard_adc.c