iio: accel: kxsd9: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 23 Jul 2013 06:47:00 +0000 (07:47 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:18 +0000 (18:41 +0100)
commit4ee309337e100042c1623c301a4b8ad2487b6330
tree54a0831221ded7bff3f3f03775a43b7c4cef87c2
parent6b545eed655e846c16fdf611e686dca54db76766
iio: accel: kxsd9: 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/iio/accel/kxsd9.c