iio: imu: inv_mpu6050: 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)
commit452204ae531f236696d69966d0ff2f5ca0ef02f7
tree8b5a77626cb9387bb0a9445e8a1182a089cf1b55
parent297c8876d9669dfa6d6a4c17bd4527495036f64f
iio: imu: inv_mpu6050: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler. While at
it include missing iio.h header file and do some cleanup.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c