iio: hid-sensor-accel-3d: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 23 Jul 2013 06:47:00 +0000 (07:47 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:13 +0000 (18:41 +0100)
commit6b545eed655e846c16fdf611e686dca54db76766
treedb7d45cd0c96e203c5c0fbea598707f647386d9a
parent80cab1da704e3f27fb4a631f95369fc31323e91c
iio: hid-sensor-accel-3d: 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/accel/hid-sensor-accel-3d.c