diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-03-05 12:00:33 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:34 -0800 |
commit | ce3ac927c70422baafcf9911d174e9e4f1919574 (patch) | |
tree | 5db933974738aeb7ab8322a3bd607c115dde0629 /drivers/misc | |
parent | 38fc4da077c56f563da7ea6ad3aa75863bd19f0b (diff) |
Invensense: simplify Kconfig
This change makes the choices optional, and removes redundant entries.
With this change, the minimal defconfig format doesn't want to always
build the mpu3050 as a module.
Original-Change-Id: Ic6dc65e982bc59671e27adbce257bf14bc97777c
Rebase-Id: R197cb8c3a6a2792960819056b5f6eb24b1c720ae
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mpu3050/Kconfig | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/drivers/misc/mpu3050/Kconfig b/drivers/misc/mpu3050/Kconfig index 579ffd2665fb..57728e8c847a 100644 --- a/drivers/misc/mpu3050/Kconfig +++ b/drivers/misc/mpu3050/Kconfig @@ -4,17 +4,10 @@ menu "Motion Sensors Support" choice
tristate "Motion Processing Unit"
depends on I2C
- default MPU_NONE
-
-config MPU_NONE
- bool "None"
- help
- This disables support for motion processing using the MPU family of
- motion processing units.
+ optional
config SENSORS_MPU3050
tristate "MPU3050"
- depends on I2C
help
If you say yes here you get support for the MPU3050 Gyroscope driver
This driver can also be built as a module. If so, the module
@@ -22,7 +15,6 @@ config SENSORS_MPU3050 config SENSORS_MPU6000
tristate "MPU6000"
- depends on I2C
help
If you say yes here you get support for the MPU6000 Gyroscope driver
This driver can also be built as a module. If so, the module
@@ -33,17 +25,10 @@ endchoice choice
prompt "Accelerometer Type"
depends on SENSORS_MPU3050
- default SENSORS_KXTF9_MPU
-
-config SENSORS_ACCELEROMETER_NONE
- bool "NONE"
- depends on SENSORS_MPU3050 || SENSORS_MPU6000
- help
- This disables accelerometer support for the MPU3050
+ optional
config SENSORS_KXTF9_MPU
bool "Kionix KXTF9"
- depends on SENSORS_MPU3050
help
This enables support for the Kionix KXFT9 accelerometer
@@ -52,35 +37,15 @@ endchoice choice
prompt "Compass Type"
depends on SENSORS_MPU6000 || SENSORS_MPU3050
- default SENSORS_AK8975_MPU
-
-config SENSORS_COMPASS_NONE
- bool "NONE"
- depends on SENSORS_MPU6000 || SENSORS_MPU3050
- help
- This disables compass support for the MPU6000
+ optional
config SENSORS_AK8975_MPU
bool "AKM ak8975"
- depends on SENSORS_MPU6000 || SENSORS_MPU3050
help
This enables support for the AKM ak8975 compass
endchoice
-choice
- prompt "Pressure Type"
- depends on SENSORS_MPU6000 || SENSORS_MPU3050
- default SENSORS_NONE
-
-config SENSORS_PRESSURE_NONE
- bool "NONE"
- depends on SENSORS_MPU6000 || SENSORS_MPU3050
- help
- This disables pressure sensor support for the MPU6000
-
-endchoice
-
config SENSORS_MPU_DEBUG
bool "MPU debug"
depends on SENSORS_MPU3050 || SENSORS_MPU6000
|