iio: light: lm3533-als: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 30 Jul 2013 08:44:00 +0000 (09:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:55:25 +0000 (18:55 +0100)
commit3d0ccbaff396920eedeb6a8d0dbb3c95847e937e
tree3ccae652d3fbab3ef2395195d96141ad5aaa2de3
parent47aff92ce081d8c9013f52e021cdfee5eebdbd2b
iio: light: lm3533-als: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/lm3533-als.c