staging: iio: ad7152: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 24 Aug 2013 19:24:00 +0000 (20:24 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 28 Aug 2013 19:21:33 +0000 (20:21 +0100)
commit538ee7cbffc1663d76f257438c35c889b0664fcc
tree564abe24b2a799fc0e2a1288883ea4bef3b8947a
parentd15b73c5bf67f273ded2f4405aea4ba79c3542ae
staging: iio: ad7152: Use devm_iio_device_alloc

Using 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/cdc/ad7152.c