Commit 3edc84e6 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

iio: Add a comment to about alphabetical order to Kconfigs and Makefiles

Keeping Makefile and Kconfig entries in alphabetical order usually works better
than just appending new entries at the end, since it reduces the amount of
conflicts. This patch adds a comment to the IIO Kconfig and Makefile files to
document that the entries should be kept in alphabetical order.

Also reorder those  entries which weren't in alphabetical order yet.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 4fd313da
# #
# Accelerometer drivers # Accelerometer drivers
# #
# When adding new entries keep the list in alphabetical order
menu "Accelerometers" menu "Accelerometers"
config HID_SENSOR_ACCEL_3D config HID_SENSOR_ACCEL_3D
...@@ -14,13 +16,6 @@ config HID_SENSOR_ACCEL_3D ...@@ -14,13 +16,6 @@ config HID_SENSOR_ACCEL_3D
Say yes here to build support for the HID SENSOR Say yes here to build support for the HID SENSOR
accelerometers 3D. accelerometers 3D.
config KXSD9
tristate "Kionix KXSD9 Accelerometer Driver"
depends on SPI
help
Say yes here to build support for the Kionix KXSD9 accelerometer.
Currently this only supports the device via an SPI interface.
config IIO_ST_ACCEL_3AXIS config IIO_ST_ACCEL_3AXIS
tristate "STMicroelectronics accelerometers 3-Axis Driver" tristate "STMicroelectronics accelerometers 3-Axis Driver"
depends on (I2C || SPI_MASTER) && SYSFS depends on (I2C || SPI_MASTER) && SYSFS
...@@ -51,4 +46,11 @@ config IIO_ST_ACCEL_SPI_3AXIS ...@@ -51,4 +46,11 @@ config IIO_ST_ACCEL_SPI_3AXIS
depends on IIO_ST_ACCEL_3AXIS depends on IIO_ST_ACCEL_3AXIS
depends on IIO_ST_SENSORS_SPI depends on IIO_ST_SENSORS_SPI
config KXSD9
tristate "Kionix KXSD9 Accelerometer Driver"
depends on SPI
help
Say yes here to build support for the Kionix KXSD9 accelerometer.
Currently this only supports the device via an SPI interface.
endmenu endmenu
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Makefile for industrial I/O accelerometer drivers # Makefile for industrial I/O accelerometer drivers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_HID_SENSOR_ACCEL_3D) += hid-sensor-accel-3d.o obj-$(CONFIG_HID_SENSOR_ACCEL_3D) += hid-sensor-accel-3d.o
obj-$(CONFIG_KXSD9) += kxsd9.o
obj-$(CONFIG_IIO_ST_ACCEL_3AXIS) += st_accel.o obj-$(CONFIG_IIO_ST_ACCEL_3AXIS) += st_accel.o
st_accel-y := st_accel_core.o st_accel-y := st_accel_core.o
...@@ -10,5 +12,3 @@ st_accel-$(CONFIG_IIO_BUFFER) += st_accel_buffer.o ...@@ -10,5 +12,3 @@ st_accel-$(CONFIG_IIO_BUFFER) += st_accel_buffer.o
obj-$(CONFIG_IIO_ST_ACCEL_I2C_3AXIS) += st_accel_i2c.o obj-$(CONFIG_IIO_ST_ACCEL_I2C_3AXIS) += st_accel_i2c.o
obj-$(CONFIG_IIO_ST_ACCEL_SPI_3AXIS) += st_accel_spi.o obj-$(CONFIG_IIO_ST_ACCEL_SPI_3AXIS) += st_accel_spi.o
obj-$(CONFIG_KXSD9) += kxsd9.o
# #
# ADC drivers # ADC drivers
# #
# When adding new entries keep the list in alphabetical order
menu "Analog to digital converters" menu "Analog to digital converters"
config AD_SIGMA_DELTA config AD_SIGMA_DELTA
...@@ -30,17 +32,20 @@ config AD7298 ...@@ -30,17 +32,20 @@ config AD7298
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 ad7298. module will be called ad7298.
config AD7923 config AD7476
tristate "Analog Devices AD7923 and similar ADCs driver" tristate "Analog Devices AD7476 and similar 1-channel ADCs driver"
depends on SPI depends on SPI
select IIO_BUFFER select IIO_BUFFER
select IIO_TRIGGERED_BUFFER select IIO_TRIGGERED_BUFFER
help help
Say yes here to build support for Analog Devices Say yes here to build support for Analog Devices AD7273, AD7274, AD7276,
AD7904, AD7914, AD7923, AD7924 4 Channel ADCs. AD7277, AD7278, AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468,
AD7495, AD7910, AD7920, AD7920 SPI analog to digital converters (ADC).
If unsure, say N (but it's safe to say "Y").
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 ad7923. module will be called ad7476.
config AD7791 config AD7791
tristate "Analog Devices AD7791 ADC driver" tristate "Analog Devices AD7791 ADC driver"
...@@ -66,33 +71,30 @@ config AD7793 ...@@ -66,33 +71,30 @@ config AD7793
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 AD7793. module will be called AD7793.
config AD7476 config AD7887
tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" tristate "Analog Devices AD7887 ADC driver"
depends on SPI depends on SPI
select IIO_BUFFER select IIO_BUFFER
select IIO_TRIGGERED_BUFFER select IIO_TRIGGERED_BUFFER
help help
Say yes here to build support for Analog Devices AD7273, AD7274, AD7276, Say yes here to build support for Analog Devices
AD7277, AD7278, AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, AD7887 SPI analog to digital converter (ADC).
AD7495, AD7910, AD7920, AD7920 SPI analog to digital converters (ADC).
If unsure, say N (but it's safe to say "Y"). If unsure, say N (but it's safe to say "Y").
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 ad7476. module will be called ad7887.
config AD7887 config AD7923
tristate "Analog Devices AD7887 ADC driver" tristate "Analog Devices AD7923 and similar ADCs driver"
depends on SPI depends on SPI
select IIO_BUFFER select IIO_BUFFER
select IIO_TRIGGERED_BUFFER select IIO_TRIGGERED_BUFFER
help help
Say yes here to build support for Analog Devices Say yes here to build support for Analog Devices
AD7887 SPI analog to digital converter (ADC). AD7904, AD7914, AD7923, AD7924 4 Channel ADCs.
If unsure, say N (but it's safe to say "Y").
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 ad7887. module will be called ad7923.
config AT91_ADC config AT91_ADC
tristate "Atmel AT91 ADC" tristate "Atmel AT91 ADC"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Makefile for IIO ADC drivers # Makefile for IIO ADC drivers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
obj-$(CONFIG_AD7266) += ad7266.o obj-$(CONFIG_AD7266) += ad7266.o
obj-$(CONFIG_AD7298) += ad7298.o obj-$(CONFIG_AD7298) += ad7298.o
......
# #
# Gain Amplifiers, etc. # Gain Amplifiers, etc.
# #
# When adding new entries keep the list in alphabetical order
menu "Amplifiers" menu "Amplifiers"
config AD8366 config AD8366
......
...@@ -2,4 +2,5 @@ ...@@ -2,4 +2,5 @@
# Makefile iio/amplifiers # Makefile iio/amplifiers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AD8366) += ad8366.o obj-$(CONFIG_AD8366) += ad8366.o
...@@ -6,5 +6,6 @@ ...@@ -6,5 +6,6 @@
# instead of duplicating in each module. # instead of duplicating in each module.
# #
# When adding new entries keep the list in alphabetical order
obj-y += hid-sensors/ obj-y += hid-sensors/
obj-y += st_sensors/ obj-y += st_sensors/
# #
# DAC drivers # DAC drivers
# #
# When adding new entries keep the list in alphabetical order
menu "Digital to analog converters" menu "Digital to analog converters"
config AD5064 config AD5064
...@@ -48,13 +50,6 @@ config AD5421 ...@@ -48,13 +50,6 @@ config AD5421
To compile this driver as module choose M here: the module will be called To compile this driver as module choose M here: the module will be called
ad5421. ad5421.
config AD5624R_SPI
tristate "Analog Devices AD5624/44/64R DAC spi driver"
depends on SPI
help
Say yes here to build support for Analog Devices AD5624R, AD5644R and
AD5664R converters (DAC). This driver uses the common SPI interface.
config AD5446 config AD5446
tristate "Analog Devices AD5446 and similar single channel DACs driver" tristate "Analog Devices AD5446 and similar single channel DACs driver"
depends on (SPI_MASTER && I2C!=m) || I2C depends on (SPI_MASTER && I2C!=m) || I2C
...@@ -87,6 +82,24 @@ config AD5504 ...@@ -87,6 +82,24 @@ config AD5504
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 ad5504. module will be called ad5504.
config AD5624R_SPI
tristate "Analog Devices AD5624/44/64R DAC spi driver"
depends on SPI
help
Say yes here to build support for Analog Devices AD5624R, AD5644R and
AD5664R converters (DAC). This driver uses the common SPI interface.
config AD5686
tristate "Analog Devices AD5686R/AD5685R/AD5684R DAC SPI driver"
depends on SPI
help
Say yes here to build support for Analog Devices AD5686R, AD5685R,
AD5684R, AD5791 Voltage Output Digital to
Analog Converter.
To compile this driver as a module, choose M here: the
module will be called ad5686.
config AD5755 config AD5755
tristate "Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver" tristate "Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver"
depends on SPI_MASTER depends on SPI_MASTER
...@@ -119,17 +132,6 @@ config AD5791 ...@@ -119,17 +132,6 @@ config AD5791
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 ad5791. module will be called ad5791.
config AD5686
tristate "Analog Devices AD5686R/AD5685R/AD5684R DAC SPI driver"
depends on SPI
help
Say yes here to build support for Analog Devices AD5686R, AD5685R,
AD5684R, AD5791 Voltage Output Digital to
Analog Converter.
To compile this driver as a module, choose M here: the
module will be called ad5686.
config AD7303 config AD7303
tristate "Analog Devices AD7303 DAC driver" tristate "Analog Devices AD7303 DAC driver"
depends on SPI depends on SPI
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Makefile for industrial I/O DAC drivers # Makefile for industrial I/O DAC drivers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AD5360) += ad5360.o obj-$(CONFIG_AD5360) += ad5360.o
obj-$(CONFIG_AD5380) += ad5380.o obj-$(CONFIG_AD5380) += ad5380.o
obj-$(CONFIG_AD5421) += ad5421.o obj-$(CONFIG_AD5421) += ad5421.o
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# Clock Distribution device drivers # Clock Distribution device drivers
# Phase-Locked Loop (PLL) frequency synthesizers # Phase-Locked Loop (PLL) frequency synthesizers
# #
# When adding new entries keep the list in alphabetical order
menu "Frequency Synthesizers DDS/PLL" menu "Frequency Synthesizers DDS/PLL"
......
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
# Makefile iio/frequency # Makefile iio/frequency
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AD9523) += ad9523.o obj-$(CONFIG_AD9523) += ad9523.o
obj-$(CONFIG_ADF4350) += adf4350.o obj-$(CONFIG_ADF4350) += adf4350.o
# #
# IIO Digital Gyroscope Sensor drivers configuration # IIO Digital Gyroscope Sensor drivers configuration
# #
# When adding new entries keep the list in alphabetical order
menu "Digital gyroscope sensors" menu "Digital gyroscope sensors"
config ADIS16080 config ADIS16080
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Makefile for industrial I/O gyroscope sensor drivers # Makefile for industrial I/O gyroscope sensor drivers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_ADIS16080) += adis16080.o obj-$(CONFIG_ADIS16080) += adis16080.o
obj-$(CONFIG_ADIS16130) += adis16130.o obj-$(CONFIG_ADIS16130) += adis16130.o
obj-$(CONFIG_ADIS16136) += adis16136.o obj-$(CONFIG_ADIS16136) += adis16136.o
......
# #
# IIO imu drivers configuration # IIO imu drivers configuration
# #
# When adding new entries keep the list in alphabetical order
menu "Inertial measurement units" menu "Inertial measurement units"
config ADIS16400 config ADIS16400
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Makefile for Inertial Measurement Units # Makefile for Inertial Measurement Units
# #
# When adding new entries keep the list in alphabetical order
adis16400-y := adis16400_core.o adis16400-y := adis16400_core.o
adis16400-$(CONFIG_IIO_BUFFER) += adis16400_buffer.o adis16400-$(CONFIG_IIO_BUFFER) += adis16400_buffer.o
obj-$(CONFIG_ADIS16400) += adis16400.o obj-$(CONFIG_ADIS16400) += adis16400.o
......
# #
# Light sensors # Light sensors
# #
# When adding new entries keep the list in alphabetical order
menu "Light sensors" menu "Light sensors"
config ADJD_S311 config ADJD_S311
...@@ -15,6 +17,17 @@ config ADJD_S311 ...@@ -15,6 +17,17 @@ config ADJD_S311
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 adjd_s311. will be called adjd_s311.
config HID_SENSOR_ALS
depends on HID_SENSOR_HUB
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select HID_SENSOR_IIO_COMMON
select HID_SENSOR_IIO_TRIGGER
tristate "HID ALS"
help
Say yes here to build support for the HID SENSOR
Ambient light sensor.
config SENSORS_LM3533 config SENSORS_LM3533
tristate "LM3533 ambient light sensor" tristate "LM3533 ambient light sensor"
depends on MFD_LM3533 depends on MFD_LM3533
...@@ -52,15 +65,4 @@ config VCNL4000 ...@@ -52,15 +65,4 @@ config VCNL4000
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 vcnl4000. module will be called vcnl4000.
config HID_SENSOR_ALS
depends on HID_SENSOR_HUB
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select HID_SENSOR_IIO_COMMON
select HID_SENSOR_IIO_TRIGGER
tristate "HID ALS"
help
Say yes here to build support for the HID SENSOR
Ambient light sensor.
endmenu endmenu
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
# Makefile for IIO Light sensors # Makefile for IIO Light sensors
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_ADJD_S311) += adjd_s311.o obj-$(CONFIG_ADJD_S311) += adjd_s311.o
obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o
obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
obj-$(CONFIG_VCNL4000) += vcnl4000.o obj-$(CONFIG_VCNL4000) += vcnl4000.o
obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o
# #
# Magnetometer sensors # Magnetometer sensors
# #
# When adding new entries keep the list in alphabetical order
menu "Magnetometer sensors" menu "Magnetometer sensors"
config AK8975 config AK8975
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Makefile for industrial I/O Magnetometer sensor drivers # Makefile for industrial I/O Magnetometer sensor drivers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_AK8975) += ak8975.o obj-$(CONFIG_AK8975) += ak8975.o
obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o
......
# #
# Pressure drivers # Pressure drivers
# #
# When adding new entries keep the list in alphabetical order
menu "Pressure sensors" menu "Pressure sensors"
config IIO_ST_PRESS config IIO_ST_PRESS
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Makefile for industrial I/O pressure drivers # Makefile for industrial I/O pressure drivers
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_IIO_ST_PRESS) += st_pressure.o obj-$(CONFIG_IIO_ST_PRESS) += st_pressure.o
st_pressure-y := st_pressure_core.o st_pressure-y := st_pressure_core.o
st_pressure-$(CONFIG_IIO_BUFFER) += st_pressure_buffer.o st_pressure-$(CONFIG_IIO_BUFFER) += st_pressure_buffer.o
......
# #
# Industrial I/O standalone triggers # Industrial I/O standalone triggers
# #
# When adding new entries keep the list in alphabetical order
menu "Triggers - standalone" menu "Triggers - standalone"
config IIO_INTERRUPT_TRIGGER config IIO_INTERRUPT_TRIGGER
......
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
# Makefile for triggers not associated with iio-devices # Makefile for triggers not associated with iio-devices
# #
# When adding new entries keep the list in alphabetical order
obj-$(CONFIG_IIO_INTERRUPT_TRIGGER) += iio-trig-interrupt.o obj-$(CONFIG_IIO_INTERRUPT_TRIGGER) += iio-trig-interrupt.o
obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment