staging: iio: light: isl29028: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 22 Jul 2013 11:03:00 +0000 (12:03 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:12 +0000 (18:41 +0100)
commit80cab1da704e3f27fb4a631f95369fc31323e91c
treeb70ccf4b640e5c4bf49cf477a33a84e31b6d4c81
parente434dcf3912d27a0c339db7b793a4b21613431c1
staging: iio: light: isl29028: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29028.c