staging: iio: ade7759: 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:53:43 +0000 (11:53 +0100)
commitb67637a3e70c61a9197bd9272760388d888c2cf3
tree8ff12ad6259b4e25e17870bde949026da0a739e4
parentd0060402042942d127ef0c95781a58d485fcaecb
staging: iio: ade7759: Use devm_iio_device_alloc

devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Barry Song <21cnbao@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/meter/ade7759.c