staging: iio: adis16240: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 24 Aug 2013 18:48:00 +0000 (19:48 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 28 Aug 2013 19:20:25 +0000 (20:20 +0100)
commite8cac7f61452d45cd4bca8cb11c139edc9633f38
tree88720f9d5592758c957ead95d5c5ddccf9d246ec
parent1868171c5caef74996c3604146e60b976e249344
staging: iio: adis16240: 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/accel/adis16240_core.c