diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-03-05 12:00:33 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-03-08 20:54:55 -0800 |
commit | 952ce191ca035f22c5c9fdbcffb9a7465eecf4af (patch) | |
tree | 9bced707672308e75765bfb640219db0578b1b0a | |
parent | e70e51e6fe64a85281f1192fc9261a99022df8d5 (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.
Change-Id: Ic6dc65e982bc59671e27adbce257bf14bc97777c
Reviewed-on: http://git-master/r/21776
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert R Collins <rcollins@nvidia.com>
-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
|