iio: dac: max517: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 19 Aug 2013 11:38:00 +0000 (12:38 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 19 Aug 2013 19:38:50 +0000 (20:38 +0100)
commitcc566fd5e52d64554d294b4d36f9d593cbe797d5
treee43294bfeb286a9ec219116c76625808574687bd
parent66e670aa0805e553e2647da37502759967f026d3
iio: dac: max517: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/max517.c