Browse Source

staging: iio: Move sensor drivers to sub menus

We have a lot of drivers now, so the iio sub menu becomes quite large.
This patch creates sub menus for the different sensors.

Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Manuel Stahl 14 years ago
parent
commit
0aeac51d1b

+ 3 - 1
drivers/staging/iio/accel/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # Accelerometer drivers
 # Accelerometer drivers
 #
 #
-comment "Accelerometers"
+menu "Accelerometers"
 
 
 config ADIS16201
 config ADIS16201
 	tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer"
 	tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer"
@@ -100,3 +100,5 @@ config SCA3000
 	help
 	help
 	  Say yes here to build support for the VTI SCA3000 series of SPI
 	  Say yes here to build support for the VTI SCA3000 series of SPI
 	  accelerometers. These devices use a hardware ring buffer.
 	  accelerometers. These devices use a hardware ring buffer.
+
+endmenu

+ 3 - 1
drivers/staging/iio/adc/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # ADC drivers
 # ADC drivers
 #
 #
-comment "Analog to digital convertors"
+menu "Analog to digital convertors"
 
 
 config AD7150
 config AD7150
 	tristate "Analog Devices ad7150/1/6 capacitive sensor driver"
 	tristate "Analog Devices ad7150/1/6 capacitive sensor driver"
@@ -229,3 +229,5 @@ config MAX1363_RING_BUFFER
 	help
 	help
 	  Say yes here to include ring buffer support in the MAX1363
 	  Say yes here to include ring buffer support in the MAX1363
 	  ADC driver.
 	  ADC driver.
+
+endmenu

+ 3 - 1
drivers/staging/iio/addac/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # ADDAC drivers
 # ADDAC drivers
 #
 #
-comment "Analog digital bi-direction convertors"
+menu "Analog digital bi-direction convertors"
 
 
 config ADT7316
 config ADT7316
 	tristate "Analog Devices ADT7316/7/8 ADT7516/7/9 temperature sensor, ADC and DAC driver"
 	tristate "Analog Devices ADT7316/7/8 ADT7516/7/9 temperature sensor, ADC and DAC driver"
@@ -23,3 +23,5 @@ config ADT7316_I2C
 	help
 	help
 	  Say yes here to build I2C bus support for Analog Devices ADT7316/7/8
 	  Say yes here to build I2C bus support for Analog Devices ADT7316/7/8
 	  and ADT7516/7/9.
 	  and ADT7516/7/9.
+
+endmenu

+ 3 - 1
drivers/staging/iio/dac/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # DAC drivers
 # DAC drivers
 #
 #
-comment "Digital to analog convertors"
+menu "Digital to analog convertors"
 
 
 config AD5624R_SPI
 config AD5624R_SPI
 	tristate "Analog Devices AD5624/44/64R DAC spi driver"
 	tristate "Analog Devices AD5624/44/64R DAC spi driver"
@@ -62,3 +62,5 @@ config MAX517
 
 
 	  This driver can also be built as a module.  If so, the module
 	  This driver can also be built as a module.  If so, the module
 	  will be called max517.
 	  will be called max517.
+
+endmenu

+ 3 - 1
drivers/staging/iio/dds/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # Direct Digital Synthesis drivers
 # Direct Digital Synthesis drivers
 #
 #
-comment "Direct Digital Synthesis"
+menu "Direct Digital Synthesis"
 
 
 config AD5930
 config AD5930
 	tristate "Analog Devices ad5930/5932 driver"
 	tristate "Analog Devices ad5930/5932 driver"
@@ -57,3 +57,5 @@ config AD9951
 	help
 	help
 	  Say yes here to build support for Analog Devices DDS chip
 	  Say yes here to build support for Analog Devices DDS chip
 	  ad9951, provides direct access via sysfs.
 	  ad9951, provides direct access via sysfs.
+
+endmenu

+ 3 - 1
drivers/staging/iio/gyro/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # IIO Digital Gyroscope Sensor drivers configuration
 # IIO Digital Gyroscope Sensor drivers configuration
 #
 #
-comment "Digital gyroscope sensors"
+menu "Digital gyroscope sensors"
 
 
 config ADIS16060
 config ADIS16060
 	tristate "Analog Devices ADIS16060 Yaw Rate Gyroscope with SPI driver"
 	tristate "Analog Devices ADIS16060 Yaw Rate Gyroscope with SPI driver"
@@ -45,3 +45,5 @@ config ADXRS450
 
 
 	  This driver can also be built as a module.  If so, the module
 	  This driver can also be built as a module.  If so, the module
 	  will be called adxrs450.
 	  will be called adxrs450.
+
+endmenu

+ 3 - 1
drivers/staging/iio/impedance-analyzer/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # Impedance Converter, Network Analyzer drivers
 # Impedance Converter, Network Analyzer drivers
 #
 #
-comment "Network Analyzer, Impedance Converters"
+menu "Network Analyzer, Impedance Converters"
 
 
 config AD5933
 config AD5933
 	tristate "Analog Devices AD5933, AD5934 driver"
 	tristate "Analog Devices AD5933, AD5934 driver"
@@ -14,3 +14,5 @@ config AD5933
 
 
 	  To compile this driver as a module, choose M here: the
 	  To compile this driver as a module, choose M here: the
 	  module will be called ad5933.
 	  module will be called ad5933.
+
+endmenu

+ 3 - 1
drivers/staging/iio/imu/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # IIO imu drivers configuration
 # IIO imu drivers configuration
 #
 #
-comment "Inertial measurement units"
+menu "Inertial measurement units"
 
 
 config ADIS16400
 config ADIS16400
 	tristate "Analog Devices ADIS16400 and similar IMU SPI driver"
 	tristate "Analog Devices ADIS16400 and similar IMU SPI driver"
@@ -13,3 +13,5 @@ config ADIS16400
 	  adis16354, adis16355, adis16360, adis16362, adis16364, adis16365,
 	  adis16354, adis16355, adis16360, adis16362, adis16364, adis16365,
 	  adis16400 and adis16405 triaxial inertial sensors (adis16400 series
 	  adis16400 and adis16405 triaxial inertial sensors (adis16400 series
 	  also have magnetometers).
 	  also have magnetometers).
+
+endmenu

+ 3 - 1
drivers/staging/iio/light/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # Light sensors
 # Light sensors
 #
 #
-comment "Light sensors"
+menu "Light sensors"
 
 
 config SENSORS_ISL29018
 config SENSORS_ISL29018
         tristate "ISL 29018 light and proximity sensor"
         tristate "ISL 29018 light and proximity sensor"
@@ -30,3 +30,5 @@ config TSL2583
 	help
 	help
 	 Provides support for the TAOS tsl2580, tsl2581 and tsl2583 devices.
 	 Provides support for the TAOS tsl2580, tsl2581 and tsl2583 devices.
 	 Access ALS data via iio, sysfs.
 	 Access ALS data via iio, sysfs.
+
+endmenu

+ 2 - 1
drivers/staging/iio/magnetometer/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # Magnetometer sensors
 # Magnetometer sensors
 #
 #
-comment "Magnetometer sensors"
+menu "Magnetometer sensors"
 
 
 config SENSORS_AK8975
 config SENSORS_AK8975
 	tristate "Asahi Kasei AK8975 3-Axis Magnetometer"
 	tristate "Asahi Kasei AK8975 3-Axis Magnetometer"
@@ -23,3 +23,4 @@ config SENSORS_HMC5843
 	  To compile this driver as a module, choose M here: the module
 	  To compile this driver as a module, choose M here: the module
 	  will be called hmc5843
 	  will be called hmc5843
 
 
+endmenu

+ 3 - 1
drivers/staging/iio/meter/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # IIO meter drivers configuration
 # IIO meter drivers configuration
 #
 #
-comment "Active energy metering IC"
+menu "Active energy metering IC"
 
 
 config ADE7753
 config ADE7753
 	tristate "Analog Devices ADE7753/6 Single-Phase Multifunction Metering IC Driver"
 	tristate "Analog Devices ADE7753/6 Single-Phase Multifunction Metering IC Driver"
@@ -59,3 +59,5 @@ config ADE7854_SPI
 
 
 	  To compile this driver as a module, choose M here: the
 	  To compile this driver as a module, choose M here: the
 	  module will be called ade7854-spi.
 	  module will be called ade7854-spi.
+
+endmenu

+ 2 - 1
drivers/staging/iio/resolver/Kconfig

@@ -1,7 +1,7 @@
 #
 #
 # Resolver/Synchro drivers
 # Resolver/Synchro drivers
 #
 #
-comment "Resolver to digital converters"
+menu "Resolver to digital converters"
 
 
 config AD2S90
 config AD2S90
 	tristate "Analog Devices ad2s90 driver"
 	tristate "Analog Devices ad2s90 driver"
@@ -25,3 +25,4 @@ config AD2S1210
 	  Say yes here to build support for Analog Devices spi resolver
 	  Say yes here to build support for Analog Devices spi resolver
 	  to digital converters, ad2s1210, provides direct access via sysfs.
 	  to digital converters, ad2s1210, provides direct access via sysfs.
 
 
+endmenu