iio: hid-sensor-gyro-3d: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 13 Aug 2013 06:34:00 +0000 (07:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 17 Aug 2013 14:50:55 +0000 (15:50 +0100)
commit1ba15cf249061c2f55f4a883ee142002261003a8
tree3c1fc054f2fcfbd913c4dfab737a60c1844ebea5
parent827b14a8ece91f3502ae4efe454197ce3210a231
iio: hid-sensor-gyro-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/gyro/hid-sensor-gyro-3d.c