summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/inv_mpu6050/Makefile
diff options
context:
space:
mode:
authorAdriana Reus <adriana.reus@intel.com>2016-02-12 12:44:44 +0100
committerJonathan Cameron <jic23@kernel.org>2016-02-13 21:54:00 +0100
commitb3eea8dacfb758baa0fe78e0cf24d5e5d288c5fe (patch)
tree32ab2ddc5f95be730faf3a050211baee78849059 /drivers/iio/imu/inv_mpu6050/Makefile
parentiio: imu: inv_mpu6050: Use regmap instead of i2c specific functions (diff)
downloadlinux-b3eea8dacfb758baa0fe78e0cf24d5e5d288c5fe.tar.xz
linux-b3eea8dacfb758baa0fe78e0cf24d5e5d288c5fe.zip
iio: imu: inv_mpu6050: Separate driver into core and i2c functionality.
Separate this driver into core and i2c functionality. This is in preparation for adding spi support. Signed-off-by: Adriana Reus <adriana.reus@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050/Makefile')
-rw-r--r--drivers/iio/imu/inv_mpu6050/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/Makefile b/drivers/iio/imu/inv_mpu6050/Makefile
index f566f6a7b3a9..ca4941d32e67 100644
--- a/drivers/iio/imu/inv_mpu6050/Makefile
+++ b/drivers/iio/imu/inv_mpu6050/Makefile
@@ -3,4 +3,7 @@
#
obj-$(CONFIG_INV_MPU6050_IIO) += inv-mpu6050.o
-inv-mpu6050-objs := inv_mpu_core.o inv_mpu_ring.o inv_mpu_trigger.o inv_mpu_acpi.o
+inv-mpu6050-objs := inv_mpu_core.o inv_mpu_ring.o inv_mpu_trigger.o
+
+obj-$(CONFIG_INV_MPU6050_I2C) += inv-mpu6050-i2c.o
+inv-mpu6050-i2c-objs := inv_mpu_i2c.o inv_mpu_acpi.o