summaryrefslogtreecommitdiffstats
path: root/invensense/mlsdk/platform
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-11-09 15:13:48 -0600
committerZiyan <jaraidaniel@gmail.com>2016-01-17 22:41:00 +0100
commit85779371e527f94e865dc0450c703676d858bc30 (patch)
treeb2260d27aa6f47d2891197ebbcb71915eed679c4 /invensense/mlsdk/platform
parentaeea3ec86137d05eb1285a05e3f1518d0645b87f (diff)
downloaddevice_samsung_tuna-85779371e527f94e865dc0450c703676d858bc30.zip
device_samsung_tuna-85779371e527f94e865dc0450c703676d858bc30.tar.gz
device_samsung_tuna-85779371e527f94e865dc0450c703676d858bc30.tar.bz2
invensense: Remove MPU6050 ifdef stuff.
The header files necessary for those sensors aren't even here anyway.
Diffstat (limited to 'invensense/mlsdk/platform')
-rw-r--r--invensense/mlsdk/platform/include/mpu3050.h4
-rw-r--r--invensense/mlsdk/platform/linux/mlsl_linux_mpu.c10
2 files changed, 1 insertions, 13 deletions
diff --git a/invensense/mlsdk/platform/include/mpu3050.h b/invensense/mlsdk/platform/include/mpu3050.h
index c363a00..bd0ac32 100644
--- a/invensense/mlsdk/platform/include/mpu3050.h
+++ b/invensense/mlsdk/platform/include/mpu3050.h
@@ -27,10 +27,6 @@
#include <linux/types.h>
#endif
-#if !defined CONFIG_MPU_SENSORS_MPU3050
-#error MPU6000 build including MPU3050 header
-#endif
-
#define MPU_NAME "mpu3050"
#define DEFAULT_MPU_SLAVEADDR 0x68
diff --git a/invensense/mlsdk/platform/linux/mlsl_linux_mpu.c b/invensense/mlsdk/platform/linux/mlsl_linux_mpu.c
index bb7b851..51cbebe 100644
--- a/invensense/mlsdk/platform/linux/mlsl_linux_mpu.c
+++ b/invensense/mlsdk/platform/linux/mlsl_linux_mpu.c
@@ -47,15 +47,7 @@
#include <time.h>
#include "mpu.h"
-#if defined CONFIG_MPU_SENSORS_MPU6050A2
-# include "mpu6050a2.h"
-#elif defined CONFIG_MPU_SENSORS_MPU6050B1
-# include "mpu6050b1.h"
-#elif defined CONFIG_MPU_SENSORS_MPU3050
-# include "mpu3050.h"
-#else
-#error Invalid or undefined CONFIG_MPU_SENSORS_MPUxxxx
-#endif
+#include "mpu3050.h"
#include "mlsl.h"
#include "mlos.h"