staging: iio: lis3l02dq: 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)
commit4c247470531d437acf3b78b8d2bd08222395ecc9
tree3908653dcc8232ee002542b53bee52dcd065a006
parente8cac7f61452d45cd4bca8cb11c139edc9633f38
staging: iio: lis3l02dq: 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/lis3l02dq_core.c