iio: light: hid-sensor-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:24 +0000 (18:55 +0100)
commit47aff92ce081d8c9013f52e021cdfee5eebdbd2b
tree8a96997a7f79f06f01874a749568031cd6d6624c
parent452204ae531f236696d69966d0ff2f5ca0ef02f7
iio: light: hid-sensor-als: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/hid-sensor-als.c