From 23cbf22dc198fa957c67b2d238e751a2679e9a42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=83=AD=E6=AF=85?= Date: Wed, 19 Mar 2014 17:33:58 +0800 Subject: [PATCH] sensor: enable sensors defconfig by default y --- drivers/input/sensors/Kconfig | 1 + drivers/input/sensors/accel/Kconfig | 7 ++++++- drivers/input/sensors/compass/Kconfig | 5 ++++- drivers/input/sensors/gyro/Kconfig | 8 ++++---- drivers/input/sensors/hall/Kconfig | 4 ++-- drivers/input/sensors/lsensor/Kconfig | 6 +++--- 6 files changed, 20 insertions(+), 11 deletions(-) diff --git a/drivers/input/sensors/Kconfig b/drivers/input/sensors/Kconfig index 5214ef525413..c1314e5cd776 100755 --- a/drivers/input/sensors/Kconfig +++ b/drivers/input/sensors/Kconfig @@ -6,6 +6,7 @@ comment "handle all sensors" menuconfig SENSOR_DEVICE tristate "handle angle,accel,compass,gyroscope,lsensor psensor etc" + default y if SENSOR_DEVICE source "drivers/input/sensors/angle/Kconfig" diff --git a/drivers/input/sensors/accel/Kconfig b/drivers/input/sensors/accel/Kconfig index e48f942af840..eea2fc493971 100755 --- a/drivers/input/sensors/accel/Kconfig +++ b/drivers/input/sensors/accel/Kconfig @@ -3,7 +3,8 @@ # menuconfig GSENSOR_DEVICE - bool "g_sensor device support" + tristate "g_sensor device support" + default y help Enable this to be able to choose the drivers for controlling the g_sensor on some platforms, for example on PDAs. @@ -11,6 +12,7 @@ menuconfig GSENSOR_DEVICE if GSENSOR_DEVICE config GS_MMA8452 bool "gsensor mma8451/mma8452/mma8453/mma8653" + default y help To have support for your specific gsesnor you will have to select the proper drivers which depend on this option. @@ -30,12 +32,14 @@ config GS_KXTJ9 config GS_LIS3DH bool "gsensor lis3dh" + default y help To have support for your specific gsesnor you will have to select the proper drivers which depend on this option. config GS_MMA7660 bool "gsensor mma7660" + default y help To have support for your specific gsesnor you will have to select the proper drivers which depend on this option. @@ -54,6 +58,7 @@ config GS_DMT10 config GS_LSM303D bool "gsensor lsm303d" + default y help To have support for your sepcific gsensor you will have to select het proper drivers which depend on this option. diff --git a/drivers/input/sensors/compass/Kconfig b/drivers/input/sensors/compass/Kconfig index efb976209820..70f78149f6ce 100755 --- a/drivers/input/sensors/compass/Kconfig +++ b/drivers/input/sensors/compass/Kconfig @@ -3,7 +3,8 @@ # menuconfig COMPASS_DEVICE - bool "Magnetometer sensors" + tristate "Magnetometer sensors" + default y help Say Y here, and a list of Magnetometer sensors drivers will be displayed. Everything that didn't fit into the other categories is here. This option @@ -16,6 +17,7 @@ if COMPASS_DEVICE config COMPASS_AK8975 tristate "Asahi Kasei AK8975 3-Axis Magnetometer" depends on I2C + default y help Say yes here to build support for Asahi Kasei AK8975 3-Axis Magnetometer. @@ -26,6 +28,7 @@ config COMPASS_AK8975 config COMPASS_AK8963 tristate "Asahi Kasei AK8963 3-Axis Magnetometer" depends on I2C + default y help Say yes here to build support for Asahi Kasei AK8963 3-Axis Magnetometer. diff --git a/drivers/input/sensors/gyro/Kconfig b/drivers/input/sensors/gyro/Kconfig index a1a03a224854..43f28a0ece02 100755 --- a/drivers/input/sensors/gyro/Kconfig +++ b/drivers/input/sensors/gyro/Kconfig @@ -4,13 +4,13 @@ menuconfig GYROSCOPE_DEVICE bool "gyroscope device support" - default n + default y if GYROSCOPE_DEVICE config GYRO_L3G4200D bool "gyroscope l3g4200d" - default n + default y config GYRO_K3G bool "gyroscope k3g" @@ -18,9 +18,9 @@ config GYRO_K3G config GYRO_L3G20D bool "gyroscope l3g20d" - default n + default y config GYRO_EWTSA bool "gyroscope ewtsa" - default n + default y endif diff --git a/drivers/input/sensors/hall/Kconfig b/drivers/input/sensors/hall/Kconfig index 6619e6ffcde8..2cc02be76e34 100644 --- a/drivers/input/sensors/hall/Kconfig +++ b/drivers/input/sensors/hall/Kconfig @@ -4,12 +4,12 @@ menuconfig HALL_DEVICE bool "hall sensor device support" - default n + default y if HALL_DEVICE config HS_OCH165T bool "hall sensor och165t" - default n + default y endif diff --git a/drivers/input/sensors/lsensor/Kconfig b/drivers/input/sensors/lsensor/Kconfig index 72cdbd0666b3..826bc27097cb 100755 --- a/drivers/input/sensors/lsensor/Kconfig +++ b/drivers/input/sensors/lsensor/Kconfig @@ -4,16 +4,16 @@ menuconfig LIGHT_DEVICE bool "light sensor device support" - default n + default y if LIGHT_DEVICE config LS_CM3217 bool "light sensor cm3217" - default n + default y config LS_CM3218 bool "light sensor cm3218" - default n + default y config LS_CM3232 bool "light sensor cm3232" -- 2.34.1