staging: iio: ad7280a: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 31 Aug 2013 17:12:00 +0000 (18:12 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 7 Sep 2013 20:47:58 +0000 (21:47 +0100)
commit0a2f0265b6dabab8342ac3374bcb47340d654e08
tree2d0b766431994391abf6bf38f8ee2108634b274b
parent1e319cecdb4800e03a803e96da63091de0165ecb
staging: iio: ad7280a: Use devm_iio_device_alloc

devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7280a.c