Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
3edc84e6 4fd313da

+91 -59
+9 -7
drivers/iio/accel/Kconfig
··· 1 1 # 2 2 # Accelerometer drivers 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Accelerometers" 5 7 6 8 config HID_SENSOR_ACCEL_3D ··· 15 13 help 16 14 Say yes here to build support for the HID SENSOR 17 15 accelerometers 3D. 18 - 19 - config KXSD9 20 - tristate "Kionix KXSD9 Accelerometer Driver" 21 - depends on SPI 22 - help 23 - Say yes here to build support for the Kionix KXSD9 accelerometer. 24 - Currently this only supports the device via an SPI interface. 25 16 26 17 config IIO_ST_ACCEL_3AXIS 27 18 tristate "STMicroelectronics accelerometers 3-Axis Driver" ··· 45 50 tristate 46 51 depends on IIO_ST_ACCEL_3AXIS 47 52 depends on IIO_ST_SENSORS_SPI 53 + 54 + config KXSD9 55 + tristate "Kionix KXSD9 Accelerometer Driver" 56 + depends on SPI 57 + help 58 + Say yes here to build support for the Kionix KXSD9 accelerometer. 59 + Currently this only supports the device via an SPI interface. 48 60 49 61 endmenu
+2 -2
drivers/iio/accel/Makefile
··· 2 2 # Makefile for industrial I/O accelerometer drivers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_HID_SENSOR_ACCEL_3D) += hid-sensor-accel-3d.o 7 + obj-$(CONFIG_KXSD9) += kxsd9.o 6 8 7 9 obj-$(CONFIG_IIO_ST_ACCEL_3AXIS) += st_accel.o 8 10 st_accel-y := st_accel_core.o ··· 12 10 13 11 obj-$(CONFIG_IIO_ST_ACCEL_I2C_3AXIS) += st_accel_i2c.o 14 12 obj-$(CONFIG_IIO_ST_ACCEL_SPI_3AXIS) += st_accel_spi.o 15 - 16 - obj-$(CONFIG_KXSD9) += kxsd9.o
+22 -20
drivers/iio/adc/Kconfig
··· 1 1 # 2 2 # ADC drivers 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Analog to digital converters" 5 7 6 8 config AD_SIGMA_DELTA ··· 32 30 To compile this driver as a module, choose M here: the 33 31 module will be called ad7298. 34 32 35 - config AD7923 36 - tristate "Analog Devices AD7923 and similar ADCs driver" 33 + config AD7476 34 + tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" 37 35 depends on SPI 38 36 select IIO_BUFFER 39 37 select IIO_TRIGGERED_BUFFER 40 38 help 41 - Say yes here to build support for Analog Devices 42 - AD7904, AD7914, AD7923, AD7924 4 Channel ADCs. 39 + Say yes here to build support for Analog Devices AD7273, AD7274, AD7276, 40 + AD7277, AD7278, AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, 41 + AD7495, AD7910, AD7920, AD7920 SPI analog to digital converters (ADC). 42 + 43 + If unsure, say N (but it's safe to say "Y"). 43 44 44 45 To compile this driver as a module, choose M here: the 45 - module will be called ad7923. 46 + module will be called ad7476. 46 47 47 48 config AD7791 48 49 tristate "Analog Devices AD7791 ADC driver" ··· 71 66 To compile this driver as a module, choose M here: the 72 67 module will be called AD7793. 73 68 74 - config AD7476 75 - tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" 76 - depends on SPI 77 - select IIO_BUFFER 78 - select IIO_TRIGGERED_BUFFER 79 - help 80 - Say yes here to build support for Analog Devices AD7273, AD7274, AD7276, 81 - AD7277, AD7278, AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, 82 - AD7495, AD7910, AD7920, AD7920 SPI analog to digital converters (ADC). 83 - 84 - If unsure, say N (but it's safe to say "Y"). 85 - 86 - To compile this driver as a module, choose M here: the 87 - module will be called ad7476. 88 - 89 69 config AD7887 90 70 tristate "Analog Devices AD7887 ADC driver" 91 71 depends on SPI ··· 83 93 84 94 To compile this driver as a module, choose M here: the 85 95 module will be called ad7887. 96 + 97 + config AD7923 98 + tristate "Analog Devices AD7923 and similar ADCs driver" 99 + depends on SPI 100 + select IIO_BUFFER 101 + select IIO_TRIGGERED_BUFFER 102 + help 103 + Say yes here to build support for Analog Devices 104 + AD7904, AD7914, AD7923, AD7924 4 Channel ADCs. 105 + 106 + To compile this driver as a module, choose M here: the 107 + module will be called ad7923. 86 108 87 109 config AT91_ADC 88 110 tristate "Atmel AT91 ADC"
+1
drivers/iio/adc/Makefile
··· 2 2 # Makefile for IIO ADC drivers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o 6 7 obj-$(CONFIG_AD7266) += ad7266.o 7 8 obj-$(CONFIG_AD7298) += ad7298.o
+2
drivers/iio/amplifiers/Kconfig
··· 1 1 # 2 2 # Gain Amplifiers, etc. 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Amplifiers" 5 7 6 8 config AD8366
+1
drivers/iio/amplifiers/Makefile
··· 2 2 # Makefile iio/amplifiers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_AD8366) += ad8366.o
+1
drivers/iio/common/Makefile
··· 6 6 # instead of duplicating in each module. 7 7 # 8 8 9 + # When adding new entries keep the list in alphabetical order 9 10 obj-y += hid-sensors/ 10 11 obj-y += st_sensors/
+20 -18
drivers/iio/dac/Kconfig
··· 1 1 # 2 2 # DAC drivers 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Digital to analog converters" 5 7 6 8 config AD5064 ··· 50 48 To compile this driver as module choose M here: the module will be called 51 49 ad5421. 52 50 53 - config AD5624R_SPI 54 - tristate "Analog Devices AD5624/44/64R DAC spi driver" 55 - depends on SPI 56 - help 57 - Say yes here to build support for Analog Devices AD5624R, AD5644R and 58 - AD5664R converters (DAC). This driver uses the common SPI interface. 59 - 60 51 config AD5446 61 52 tristate "Analog Devices AD5446 and similar single channel DACs driver" 62 53 depends on (SPI_MASTER && I2C!=m) || I2C ··· 82 87 To compile this driver as a module, choose M here: the 83 88 module will be called ad5504. 84 89 90 + config AD5624R_SPI 91 + tristate "Analog Devices AD5624/44/64R DAC spi driver" 92 + depends on SPI 93 + help 94 + Say yes here to build support for Analog Devices AD5624R, AD5644R and 95 + AD5664R converters (DAC). This driver uses the common SPI interface. 96 + 97 + config AD5686 98 + tristate "Analog Devices AD5686R/AD5685R/AD5684R DAC SPI driver" 99 + depends on SPI 100 + help 101 + Say yes here to build support for Analog Devices AD5686R, AD5685R, 102 + AD5684R, AD5791 Voltage Output Digital to 103 + Analog Converter. 104 + 105 + To compile this driver as a module, choose M here: the 106 + module will be called ad5686. 107 + 85 108 config AD5755 86 109 tristate "Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver" 87 110 depends on SPI_MASTER ··· 131 118 132 119 To compile this driver as a module, choose M here: the 133 120 module will be called ad5791. 134 - 135 - config AD5686 136 - tristate "Analog Devices AD5686R/AD5685R/AD5684R DAC SPI driver" 137 - depends on SPI 138 - help 139 - Say yes here to build support for Analog Devices AD5686R, AD5685R, 140 - AD5684R, AD5791 Voltage Output Digital to 141 - Analog Converter. 142 - 143 - To compile this driver as a module, choose M here: the 144 - module will be called ad5686. 145 121 146 122 config AD7303 147 123 tristate "Analog Devices AD7303 DAC driver"
+1
drivers/iio/dac/Makefile
··· 2 2 # Makefile for industrial I/O DAC drivers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_AD5360) += ad5360.o 6 7 obj-$(CONFIG_AD5380) += ad5380.o 7 8 obj-$(CONFIG_AD5421) += ad5421.o
+1
drivers/iio/frequency/Kconfig
··· 4 4 # Clock Distribution device drivers 5 5 # Phase-Locked Loop (PLL) frequency synthesizers 6 6 # 7 + # When adding new entries keep the list in alphabetical order 7 8 8 9 menu "Frequency Synthesizers DDS/PLL" 9 10
+1
drivers/iio/frequency/Makefile
··· 2 2 # Makefile iio/frequency 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_AD9523) += ad9523.o 6 7 obj-$(CONFIG_ADF4350) += adf4350.o
+2
drivers/iio/gyro/Kconfig
··· 1 1 # 2 2 # IIO Digital Gyroscope Sensor drivers configuration 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Digital gyroscope sensors" 5 7 6 8 config ADIS16080
+1
drivers/iio/gyro/Makefile
··· 2 2 # Makefile for industrial I/O gyroscope sensor drivers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_ADIS16080) += adis16080.o 6 7 obj-$(CONFIG_ADIS16130) += adis16130.o 7 8 obj-$(CONFIG_ADIS16136) += adis16136.o
+2
drivers/iio/imu/Kconfig
··· 1 1 # 2 2 # IIO imu drivers configuration 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Inertial measurement units" 5 7 6 8 config ADIS16400
+1
drivers/iio/imu/Makefile
··· 2 2 # Makefile for Inertial Measurement Units 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 adis16400-y := adis16400_core.o 6 7 adis16400-$(CONFIG_IIO_BUFFER) += adis16400_buffer.o 7 8 obj-$(CONFIG_ADIS16400) += adis16400.o
+13 -11
drivers/iio/light/Kconfig
··· 1 1 # 2 2 # Light sensors 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Light sensors" 5 7 6 8 config ADJD_S311 ··· 16 14 17 15 This driver can also be built as a module. If so, the module 18 16 will be called adjd_s311. 17 + 18 + config HID_SENSOR_ALS 19 + depends on HID_SENSOR_HUB 20 + select IIO_BUFFER 21 + select IIO_TRIGGERED_BUFFER 22 + select HID_SENSOR_IIO_COMMON 23 + select HID_SENSOR_IIO_TRIGGER 24 + tristate "HID ALS" 25 + help 26 + Say yes here to build support for the HID SENSOR 27 + Ambient light sensor. 19 28 20 29 config SENSORS_LM3533 21 30 tristate "LM3533 ambient light sensor" ··· 64 51 65 52 To compile this driver as a module, choose M here: the 66 53 module will be called vcnl4000. 67 - 68 - config HID_SENSOR_ALS 69 - depends on HID_SENSOR_HUB 70 - select IIO_BUFFER 71 - select IIO_TRIGGERED_BUFFER 72 - select HID_SENSOR_IIO_COMMON 73 - select HID_SENSOR_IIO_TRIGGER 74 - tristate "HID ALS" 75 - help 76 - Say yes here to build support for the HID SENSOR 77 - Ambient light sensor. 78 54 79 55 endmenu
+2 -1
drivers/iio/light/Makefile
··· 2 2 # Makefile for IIO Light sensors 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_ADJD_S311) += adjd_s311.o 7 + obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o 6 8 obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o 7 9 obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o 8 10 obj-$(CONFIG_VCNL4000) += vcnl4000.o 9 - obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o
+2
drivers/iio/magnetometer/Kconfig
··· 1 1 # 2 2 # Magnetometer sensors 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Magnetometer sensors" 5 7 6 8 config AK8975
+1
drivers/iio/magnetometer/Makefile
··· 2 2 # Makefile for industrial I/O Magnetometer sensor drivers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_AK8975) += ak8975.o 6 7 obj-$(CONFIG_HID_SENSOR_MAGNETOMETER_3D) += hid-sensor-magn-3d.o 7 8
+2
drivers/iio/pressure/Kconfig
··· 1 1 # 2 2 # Pressure drivers 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Pressure sensors" 5 7 6 8 config IIO_ST_PRESS
+1
drivers/iio/pressure/Makefile
··· 2 2 # Makefile for industrial I/O pressure drivers 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_IIO_ST_PRESS) += st_pressure.o 6 7 st_pressure-y := st_pressure_core.o 7 8 st_pressure-$(CONFIG_IIO_BUFFER) += st_pressure_buffer.o
+2
drivers/iio/trigger/Kconfig
··· 1 1 # 2 2 # Industrial I/O standalone triggers 3 3 # 4 + # When adding new entries keep the list in alphabetical order 5 + 4 6 menu "Triggers - standalone" 5 7 6 8 config IIO_INTERRUPT_TRIGGER
+1
drivers/iio/trigger/Makefile
··· 2 2 # Makefile for triggers not associated with iio-devices 3 3 # 4 4 5 + # When adding new entries keep the list in alphabetical order 5 6 obj-$(CONFIG_IIO_INTERRUPT_TRIGGER) += iio-trig-interrupt.o 6 7 obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o