Skip to content

Commit 3edc84e

Browse files
larsclausenjic23
authored andcommitted
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>
1 parent 4fd313d commit 3edc84e

23 files changed

Lines changed: 88 additions & 56 deletions

File tree

‎drivers/iio/accel/Kconfig‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# Accelerometer drivers
33
#
4+
# When adding new entries keep the list in alphabetical order
5+
46
menu "Accelerometers"
57

68
config HID_SENSOR_ACCEL_3D
@@ -14,13 +16,6 @@ config HID_SENSOR_ACCEL_3D
1416
Say yes here to build support for the HID SENSOR
1517
accelerometers 3D.
1618

17-
config KXSD9
18-
tristate "Kionix KXSD9 Accelerometer Driver"
19-
depends on SPI
20-
help
21-
Say yes here to build support for the Kionix KXSD9 accelerometer.
22-
Currently this only supports the device via an SPI interface.
23-
2419
config IIO_ST_ACCEL_3AXIS
2520
tristate "STMicroelectronics accelerometers 3-Axis Driver"
2621
depends on (I2C || SPI_MASTER) && SYSFS
@@ -51,4 +46,11 @@ config IIO_ST_ACCEL_SPI_3AXIS
5146
depends on IIO_ST_ACCEL_3AXIS
5247
depends on IIO_ST_SENSORS_SPI
5348

49+
config KXSD9
50+
tristate "Kionix KXSD9 Accelerometer Driver"
51+
depends on SPI
52+
help
53+
Say yes here to build support for the Kionix KXSD9 accelerometer.
54+
Currently this only supports the device via an SPI interface.
55+
5456
endmenu

‎drivers/iio/accel/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# Makefile for industrial I/O accelerometer drivers
33
#
44

5+
# When adding new entries keep the list in alphabetical order
56
obj-$(CONFIG_HID_SENSOR_ACCEL_3D) += hid-sensor-accel-3d.o
7+
obj-$(CONFIG_KXSD9) += kxsd9.o
68

79
obj-$(CONFIG_IIO_ST_ACCEL_3AXIS) += st_accel.o
810
st_accel-y := st_accel_core.o
911
st_accel-$(CONFIG_IIO_BUFFER) += st_accel_buffer.o
1012

1113
obj-$(CONFIG_IIO_ST_ACCEL_I2C_3AXIS) += st_accel_i2c.o
1214
obj-$(CONFIG_IIO_ST_ACCEL_SPI_3AXIS) += st_accel_spi.o
13-
14-
obj-$(CONFIG_KXSD9) += kxsd9.o

‎drivers/iio/adc/Kconfig‎

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# ADC drivers
33
#
4+
# When adding new entries keep the list in alphabetical order
5+
46
menu "Analog to digital converters"
57

68
config AD_SIGMA_DELTA
@@ -30,17 +32,20 @@ config AD7298
3032
To compile this driver as a module, choose M here: the
3133
module will be called ad7298.
3234

33-
config AD7923
34-
tristate "Analog Devices AD7923 and similar ADCs driver"
35+
config AD7476
36+
tristate "Analog Devices AD7476 and similar 1-channel ADCs driver"
3537
depends on SPI
3638
select IIO_BUFFER
3739
select IIO_TRIGGERED_BUFFER
3840
help
39-
Say yes here to build support for Analog Devices
40-
AD7904, AD7914, AD7923, AD7924 4 Channel ADCs.
41+
Say yes here to build support for Analog Devices AD7273, AD7274, AD7276,
42+
AD7277, AD7278, AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468,
43+
AD7495, AD7910, AD7920, AD7920 SPI analog to digital converters (ADC).
44+
45+
If unsure, say N (but it's safe to say "Y").
4146

4247
To compile this driver as a module, choose M here: the
43-
module will be called ad7923.
48+
module will be called ad7476.
4449

4550
config AD7791
4651
tristate "Analog Devices AD7791 ADC driver"
@@ -66,33 +71,30 @@ config AD7793
6671
To compile this driver as a module, choose M here: the
6772
module will be called AD7793.
6873

69-
config AD7476
70-
tristate "Analog Devices AD7476 and similar 1-channel ADCs driver"
74+
config AD7887
75+
tristate "Analog Devices AD7887 ADC driver"
7176
depends on SPI
7277
select IIO_BUFFER
7378
select IIO_TRIGGERED_BUFFER
7479
help
75-
Say yes here to build support for Analog Devices AD7273, AD7274, AD7276,
76-
AD7277, AD7278, AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468,
77-
AD7495, AD7910, AD7920, AD7920 SPI analog to digital converters (ADC).
78-
80+
Say yes here to build support for Analog Devices
81+
AD7887 SPI analog to digital converter (ADC).
7982
If unsure, say N (but it's safe to say "Y").
8083

8184
To compile this driver as a module, choose M here: the
82-
module will be called ad7476.
85+
module will be called ad7887.
8386

84-
config AD7887
85-
tristate "Analog Devices AD7887 ADC driver"
87+
config AD7923
88+
tristate "Analog Devices AD7923 and similar ADCs driver"
8689
depends on SPI
8790
select IIO_BUFFER
8891
select IIO_TRIGGERED_BUFFER
8992
help
9093
Say yes here to build support for Analog Devices
91-
AD7887 SPI analog to digital converter (ADC).
92-
If unsure, say N (but it's safe to say "Y").
94+
AD7904, AD7914, AD7923, AD7924 4 Channel ADCs.
9395

9496
To compile this driver as a module, choose M here: the
95-
module will be called ad7887.
97+
module will be called ad7923.
9698

9799
config AT91_ADC
98100
tristate "Atmel AT91 ADC"

‎drivers/iio/adc/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Makefile for IIO ADC drivers
33
#
44

5+
# When adding new entries keep the list in alphabetical order
56
obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
67
obj-$(CONFIG_AD7266) += ad7266.o
78
obj-$(CONFIG_AD7298) += ad7298.o

‎drivers/iio/amplifiers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# Gain Amplifiers, etc.
33
#
4+
# When adding new entries keep the list in alphabetical order
5+
46
menu "Amplifiers"
57

68
config AD8366

‎drivers/iio/amplifiers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Makefile iio/amplifiers
33
#
44

5+
# When adding new entries keep the list in alphabetical order
56
obj-$(CONFIG_AD8366) += ad8366.o

‎drivers/iio/common/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
# instead of duplicating in each module.
77
#
88

9+
# When adding new entries keep the list in alphabetical order
910
obj-y += hid-sensors/
1011
obj-y += st_sensors/

‎drivers/iio/dac/Kconfig‎

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# DAC drivers
33
#
4+
# When adding new entries keep the list in alphabetical order
5+
46
menu "Digital to analog converters"
57

68
config AD5064
@@ -48,13 +50,6 @@ config AD5421
4850
To compile this driver as module choose M here: the module will be called
4951
ad5421.
5052

51-
config AD5624R_SPI
52-
tristate "Analog Devices AD5624/44/64R DAC spi driver"
53-
depends on SPI
54-
help
55-
Say yes here to build support for Analog Devices AD5624R, AD5644R and
56-
AD5664R converters (DAC). This driver uses the common SPI interface.
57-
5853
config AD5446
5954
tristate "Analog Devices AD5446 and similar single channel DACs driver"
6055
depends on (SPI_MASTER && I2C!=m) || I2C
@@ -87,6 +82,24 @@ config AD5504
8782
To compile this driver as a module, choose M here: the
8883
module will be called ad5504.
8984

85+
config AD5624R_SPI
86+
tristate "Analog Devices AD5624/44/64R DAC spi driver"
87+
depends on SPI
88+
help
89+
Say yes here to build support for Analog Devices AD5624R, AD5644R and
90+
AD5664R converters (DAC). This driver uses the common SPI interface.
91+
92+
config AD5686
93+
tristate "Analog Devices AD5686R/AD5685R/AD5684R DAC SPI driver"
94+
depends on SPI
95+
help
96+
Say yes here to build support for Analog Devices AD5686R, AD5685R,
97+
AD5684R, AD5791 Voltage Output Digital to
98+
Analog Converter.
99+
100+
To compile this driver as a module, choose M here: the
101+
module will be called ad5686.
102+
90103
config AD5755
91104
tristate "Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver"
92105
depends on SPI_MASTER
@@ -119,17 +132,6 @@ config AD5791
119132
To compile this driver as a module, choose M here: the
120133
module will be called ad5791.
121134

122-
config AD5686
123-
tristate "Analog Devices AD5686R/AD5685R/AD5684R DAC SPI driver"
124-
depends on SPI
125-
help
126-
Say yes here to build support for Analog Devices AD5686R, AD5685R,
127-
AD5684R, AD5791 Voltage Output Digital to
128-
Analog Converter.
129-
130-
To compile this driver as a module, choose M here: the
131-
module will be called ad5686.
132-
133135
config AD7303
134136
tristate "Analog Devices AD7303 DAC driver"
135137
depends on SPI

‎drivers/iio/dac/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Makefile for industrial I/O DAC drivers
33
#
44

5+
# When adding new entries keep the list in alphabetical order
56
obj-$(CONFIG_AD5360) += ad5360.o
67
obj-$(CONFIG_AD5380) += ad5380.o
78
obj-$(CONFIG_AD5421) += ad5421.o

‎drivers/iio/frequency/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Clock Distribution device drivers
55
# Phase-Locked Loop (PLL) frequency synthesizers
66
#
7+
# When adding new entries keep the list in alphabetical order
78

89
menu "Frequency Synthesizers DDS/PLL"
910

0 commit comments

Comments
 (0)