staging: iio: ade7854: 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:58:34 +0000 (11:58 +0100)
commitb909459f1557f62d2af7eee5f080ac0b540923e7
tree76b90198f95442b1f6a7360532d45e0658786e55
parentb67637a3e70c61a9197bd9272760388d888c2cf3
staging: iio: ade7854: 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/ade7854-i2c.c
drivers/staging/iio/meter/ade7854-spi.c
drivers/staging/iio/meter/ade7854.c