iio: magnetometer: hid-sensor-magn-3d: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 2 Aug 2013 10:08:00 +0000 (11:08 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:43:14 +0000 (18:43 +0100)
commit907c0a0ae0e0f3b26d1d2bb6f05f116f0a9decc1
tree1fb0968e2075632e1fc6dfa3203e4fc9ddafbf82
parent555d5a9f17ef71849cae57fd2efda60b50d325ce
iio: magnetometer: hid-sensor-magn-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/magnetometer/hid-sensor-magn-3d.c