drivers: sensor: clean up Kconfig files
- place all sensor Kconfig options in submenu - separate device drivers and common options with a comment line - align help text Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
parent
df5cc172f4
commit
c1f8eb4182
37 changed files with 48 additions and 51 deletions
|
@ -13,32 +13,30 @@ menuconfig SENSOR
|
||||||
help
|
help
|
||||||
Include sensor drivers in system config
|
Include sensor drivers in system config
|
||||||
|
|
||||||
|
if SENSOR
|
||||||
|
|
||||||
config SYS_LOG_SENSOR_LEVEL
|
config SYS_LOG_SENSOR_LEVEL
|
||||||
int "Sensor Log level"
|
int "Sensor Log level"
|
||||||
depends on SYS_LOG && SENSOR
|
depends on SYS_LOG
|
||||||
default 0
|
default 0
|
||||||
range 0 4
|
range 0 4
|
||||||
help
|
help
|
||||||
Sets log level for sensor driver.
|
Sets log level for Sensor Device Drivers.
|
||||||
Levels are:
|
Levels are:
|
||||||
|
0 OFF, do not write
|
||||||
- 0 OFF: do not write
|
1 ERROR, only write SYS_LOG_ERR
|
||||||
|
2 WARNING, write SYS_LOG_WRN in addition to previous level
|
||||||
- 1 ERROR: only write SYS_LOG_ERR
|
3 INFO, write SYS_LOG_INF in addition to previous levels
|
||||||
|
4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
||||||
- 2 WARNING: write SYS_LOG_WRN in addition to previous level
|
|
||||||
|
|
||||||
- 3 INFO: write SYS_LOG_INF in addition to previous levels
|
|
||||||
|
|
||||||
- 4 DEBUG: write SYS_LOG_DBG in addition to previous levels
|
|
||||||
|
|
||||||
config SENSOR_INIT_PRIORITY
|
config SENSOR_INIT_PRIORITY
|
||||||
int
|
int
|
||||||
prompt "Sensor init priority"
|
prompt "Sensor init priority"
|
||||||
depends on SENSOR
|
|
||||||
default 90
|
default 90
|
||||||
help
|
help
|
||||||
Sensor initialization priority.
|
Sensor initialization priority.
|
||||||
|
|
||||||
|
comment "Device Drivers"
|
||||||
|
|
||||||
source "drivers/sensor/adxl362/Kconfig"
|
source "drivers/sensor/adxl362/Kconfig"
|
||||||
|
|
||||||
|
@ -111,3 +109,5 @@ source "drivers/sensor/th02/Kconfig"
|
||||||
source "drivers/sensor/tmp007/Kconfig"
|
source "drivers/sensor/tmp007/Kconfig"
|
||||||
|
|
||||||
source "drivers/sensor/tmp112/Kconfig"
|
source "drivers/sensor/tmp112/Kconfig"
|
||||||
|
|
||||||
|
endif # SENSOR
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
menuconfig ADXL362
|
menuconfig ADXL362
|
||||||
bool "ADXL362 sensor"
|
bool "ADXL362 sensor"
|
||||||
depends on SENSOR && SPI
|
depends on SPI
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for ADXL362 Three-Axis Digital Accelerometers.
|
Enable driver for ADXL362 Three-Axis Digital Accelerometers.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig AK8975
|
menuconfig AK8975
|
||||||
bool
|
bool
|
||||||
prompt "AK8975 Magnetometer"
|
prompt "AK8975 Magnetometer"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for AK8975 magnetometer.
|
Enable driver for AK8975 magnetometer.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
menuconfig APDS9960
|
menuconfig APDS9960
|
||||||
bool "APDS9960 Sensor"
|
bool "APDS9960 Sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for APDS9960 sensors.
|
Enable driver for APDS9960 sensors.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig BMA280
|
menuconfig BMA280
|
||||||
bool
|
bool
|
||||||
prompt "BMA280 Three Axis Accelerometer Family"
|
prompt "BMA280 Three Axis Accelerometer Family"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for BMA280 I2C-based triaxial accelerometer sensor
|
Enable driver for BMA280 I2C-based triaxial accelerometer sensor
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
menuconfig BMC150_MAGN
|
menuconfig BMC150_MAGN
|
||||||
bool "BMC150_MAGN I2C Magnetometer Chip"
|
bool "BMC150_MAGN I2C Magnetometer Chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for BMC150 I2C-based magnetometer sensor.
|
Enable driver for BMC150 I2C-based magnetometer sensor.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#
|
#
|
||||||
menuconfig BME280
|
menuconfig BME280
|
||||||
bool "BME280/BMP280 sensor"
|
bool "BME280/BMP280 sensor"
|
||||||
depends on SENSOR && (I2C || SPI)
|
depends on I2C || SPI
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for BME280 I2C-based or SPI-based temperature and pressure sensor.
|
Enable driver for BME280 I2C-based or SPI-based temperature and pressure sensor.
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
menuconfig BMG160
|
menuconfig BMG160
|
||||||
bool "Bosch BMG160 gyroscope support"
|
bool "Bosch BMG160 gyroscope support"
|
||||||
depends on SENSOR
|
|
||||||
depends on I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
menuconfig BMI160
|
menuconfig BMI160
|
||||||
bool "Bosch BMI160 inertial measurement unit"
|
bool "Bosch BMI160 inertial measurement unit"
|
||||||
depends on SENSOR
|
|
||||||
depends on SPI
|
depends on SPI
|
||||||
depends on SPI_LEGACY_API
|
depends on SPI_LEGACY_API
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
menuconfig BMM150
|
menuconfig BMM150
|
||||||
bool "BMM150 I2C Geomagnetic Chip"
|
bool "BMM150 I2C Geomagnetic Chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for BMM150 I2C-based Geomagnetic sensor.
|
Enable driver for BMM150 I2C-based Geomagnetic sensor.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig DHT
|
menuconfig DHT
|
||||||
bool
|
bool
|
||||||
prompt "DHT Temperature and Humidity Sensor"
|
prompt "DHT Temperature and Humidity Sensor"
|
||||||
depends on SENSOR && GPIO
|
depends on GPIO
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for the DHT temperature and humidity sensor family.
|
Enable driver for the DHT temperature and humidity sensor family.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
menuconfig FXAS21002
|
menuconfig FXAS21002
|
||||||
bool "FXAS21002 gyroscope driver"
|
bool "FXAS21002 gyroscope driver"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for the FXAS21002 gyroscope
|
Enable driver for the FXAS21002 gyroscope
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
menuconfig FXOS8700
|
menuconfig FXOS8700
|
||||||
bool "FXOS8700 accelerometer/magnetometer driver"
|
bool "FXOS8700 accelerometer/magnetometer driver"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for the FXOS8700 accelerometer/magnetometer
|
Enable driver for the FXOS8700 accelerometer/magnetometer
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig HDC1008
|
menuconfig HDC1008
|
||||||
bool
|
bool
|
||||||
prompt "HDC1008 Temperature and Humidity Sensor"
|
prompt "HDC1008 Temperature and Humidity Sensor"
|
||||||
depends on SENSOR && I2C && GPIO
|
depends on I2C && GPIO
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for HDC1008 temperature and humidity sensors.
|
Enable driver for HDC1008 temperature and humidity sensors.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
menuconfig HMC5883L
|
menuconfig HMC5883L
|
||||||
bool
|
bool
|
||||||
prompt "HMC5883L magnetometer"
|
prompt "HMC5883L magnetometer"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for HMC5883L I2C-based magnetometer.
|
Enable driver for HMC5883L I2C-based magnetometer.
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#
|
#
|
||||||
menuconfig HP206C
|
menuconfig HP206C
|
||||||
bool "HopeRF HP206C precision barometer and altimeter sensor"
|
bool "HopeRF HP206C precision barometer and altimeter sensor"
|
||||||
depends on SENSOR
|
|
||||||
depends on I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
menuconfig HTS221
|
menuconfig HTS221
|
||||||
bool
|
bool
|
||||||
prompt "HTS221 temperature and humidity sensor"
|
prompt "HTS221 temperature and humidity sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for HTS221 I2C-based temperature and humidity sensor.
|
Enable driver for HTS221 I2C-based temperature and humidity sensor.
|
||||||
|
|
|
@ -10,7 +10,7 @@ menuconfig ISL29035
|
||||||
bool
|
bool
|
||||||
prompt "ISL29035 light sensor"
|
prompt "ISL29035 light sensor"
|
||||||
default n
|
default n
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
help
|
help
|
||||||
Enable driver for the ISL29035 light sensor.
|
Enable driver for the ISL29035 light sensor.
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig LIS2DH
|
menuconfig LIS2DH
|
||||||
bool
|
bool
|
||||||
prompt "LIS2DH Three Axis Accelerometer"
|
prompt "LIS2DH Three Axis Accelerometer"
|
||||||
depends on SENSOR && (I2C || SPI)
|
depends on I2C || SPI
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LIS2DH SPI/I2C-based triaxial accelerometer sensor.
|
Enable driver for LIS2DH SPI/I2C-based triaxial accelerometer sensor.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig LIS3DH
|
menuconfig LIS3DH
|
||||||
bool
|
bool
|
||||||
prompt "LIS3DH Three Axis Accelerometer"
|
prompt "LIS3DH Three Axis Accelerometer"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LIS3DH I2C-based triaxial accelerometer sensor.
|
Enable driver for LIS3DH I2C-based triaxial accelerometer sensor.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
menuconfig LIS3MDL
|
menuconfig LIS3MDL
|
||||||
bool
|
bool
|
||||||
prompt "LIS3MDL magnetometer"
|
prompt "LIS3MDL magnetometer"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LIS3MDL I2C-based magnetometer.
|
Enable driver for LIS3MDL I2C-based magnetometer.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
menuconfig LPS22HB
|
menuconfig LPS22HB
|
||||||
bool
|
bool
|
||||||
prompt "LPS22HB pressure and temperature"
|
prompt "LPS22HB pressure and temperature"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LPS22HB I2C-based pressure and temperature
|
Enable driver for LPS22HB I2C-based pressure and temperature
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
menuconfig LPS25HB
|
menuconfig LPS25HB
|
||||||
bool
|
bool
|
||||||
prompt "LPS25HB pressure and temperature"
|
prompt "LPS25HB pressure and temperature"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LPS25HB I2C-based pressure and temperature
|
Enable driver for LPS25HB I2C-based pressure and temperature
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
menuconfig LSM6DS0
|
menuconfig LSM6DS0
|
||||||
bool "LSM6DS0 I2C accelerometer and gyroscope Chip"
|
bool "LSM6DS0 I2C accelerometer and gyroscope Chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope
|
Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
menuconfig LSM6DSL
|
menuconfig LSM6DSL
|
||||||
bool "LSM6DSL I2C accelerometer and gyroscope Chip"
|
bool "LSM6DSL I2C accelerometer and gyroscope Chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LSM6DSL I2C-based accelerometer and gyroscope
|
Enable driver for LSM6DSL I2C-based accelerometer and gyroscope
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
menuconfig LSM9DS0_GYRO
|
menuconfig LSM9DS0_GYRO
|
||||||
bool "LSM9DS0 I2C gyroscope Chip"
|
bool "LSM9DS0 I2C gyroscope Chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LSM9DS0 I2C-based gyroscope sensor.
|
Enable driver for LSM9DS0 I2C-based gyroscope sensor.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
menuconfig LSM9DS0_MFD
|
menuconfig LSM9DS0_MFD
|
||||||
bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip"
|
bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for LSM9DS0 I2C-based MFD sensor.
|
Enable driver for LSM9DS0 I2C-based MFD sensor.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
menuconfig MAX30101
|
menuconfig MAX30101
|
||||||
bool
|
bool
|
||||||
prompt "MAX30101 Pulse Oximeter and Heart Rate Sensor"
|
prompt "MAX30101 Pulse Oximeter and Heart Rate Sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
|
|
||||||
if MAX30101
|
if MAX30101
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig MAX44009
|
menuconfig MAX44009
|
||||||
bool
|
bool
|
||||||
prompt "MAX44009 Light Sensor"
|
prompt "MAX44009 Light Sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for MAX44009 light sensors.
|
Enable driver for MAX44009 light sensors.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
menuconfig MCP9808
|
menuconfig MCP9808
|
||||||
bool "MCP9808 temperature sensor"
|
bool "MCP9808 temperature sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for MCP9808 temperature sensor.
|
Enable driver for MCP9808 temperature sensor.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig MPU6050
|
menuconfig MPU6050
|
||||||
bool
|
bool
|
||||||
prompt "MPU6050 Six-Axis Motion Tracking Device"
|
prompt "MPU6050 Six-Axis Motion Tracking Device"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for MPU6050 I2C-based six-axis motion tracking device.
|
Enable driver for MPU6050 I2C-based six-axis motion tracking device.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig TEMP_NRF5
|
menuconfig TEMP_NRF5
|
||||||
bool
|
bool
|
||||||
prompt "nRF5 Temperature Sensor"
|
prompt "nRF5 Temperature Sensor"
|
||||||
depends on SENSOR && SOC_FAMILY_NRF5
|
depends on SOC_FAMILY_NRF5
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for nRF5 temperature sensor.
|
Enable driver for nRF5 temperature sensor.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig SHT3XD
|
menuconfig SHT3XD
|
||||||
bool
|
bool
|
||||||
prompt "SHT3xD Temperature and Humidity Sensor"
|
prompt "SHT3xD Temperature and Humidity Sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for SHT3xD temperature and humidity sensors.
|
Enable driver for SHT3xD temperature and humidity sensors.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
menuconfig SX9500
|
menuconfig SX9500
|
||||||
bool "SX9500 I2C SAR Proximity Chip"
|
bool "SX9500 I2C SAR Proximity Chip"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for SX9500 I2C-based SAR proximity sensor.
|
Enable driver for SX9500 I2C-based SAR proximity sensor.
|
||||||
|
|
|
@ -8,7 +8,7 @@ menuconfig TH02
|
||||||
bool
|
bool
|
||||||
prompt "TH02 Temperature Sensor"
|
prompt "TH02 Temperature Sensor"
|
||||||
default n
|
default n
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
help
|
help
|
||||||
Enable driver for the TH02 temperature sensor.
|
Enable driver for the TH02 temperature sensor.
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig TMP007
|
menuconfig TMP007
|
||||||
bool
|
bool
|
||||||
prompt "TMP007 Infrared Thermopile Sensor"
|
prompt "TMP007 Infrared Thermopile Sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for TMP007 infrared thermopile sensors.
|
Enable driver for TMP007 infrared thermopile sensors.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
menuconfig TMP112
|
menuconfig TMP112
|
||||||
bool
|
bool
|
||||||
prompt "TMP112 Temperature Sensor"
|
prompt "TMP112 Temperature Sensor"
|
||||||
depends on SENSOR && I2C
|
depends on I2C
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable driver for TMP112 infrared thermopile sensors.
|
Enable driver for TMP112 infrared thermopile sensors.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue