staging: iio: ad2s1210: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 11 Sep 2013 09:55:00 +0000 (10:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Sep 2013 10:51:46 +0000 (11:51 +0100)
commit50711572c6949f3e5f53f47f7adf2d7c1d5011d9
treed7cd0d7fac4227d07df8af7a41c76ed959e42360
parenta20df3fe4636aaede5d0e78408812e30a7b15baf
staging: iio: ad2s1210: Use devm_iio_device_alloc

devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Graff Yang <graff.yang@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/resolver/ad2s1210.c