Skip to content

Commit 5c48cb9

Browse files
mhennerichgregkh
authored andcommitted
iio: adc: Relocate Capacitance to Digital Converters (CDC) into own subdir
No functional changes. Fix Kconfig description. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent e63abd0 commit 5c48cb9

10 files changed

Lines changed: 45 additions & 27 deletions

File tree

‎drivers/staging/iio/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ config IIO_CONSUMERS_PER_TRIGGER
5959
source "drivers/staging/iio/accel/Kconfig"
6060
source "drivers/staging/iio/adc/Kconfig"
6161
source "drivers/staging/iio/addac/Kconfig"
62+
source "drivers/staging/iio/cdc/Kconfig"
6263
source "drivers/staging/iio/dac/Kconfig"
6364
source "drivers/staging/iio/dds/Kconfig"
6465
source "drivers/staging/iio/gyro/Kconfig"

‎drivers/staging/iio/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_IIO_DUMMY_EVGEN) += iio_dummy_evgen.o
2020
obj-y += accel/
2121
obj-y += adc/
2222
obj-y += addac/
23+
obj-y += cdc/
2324
obj-y += dac/
2425
obj-y += dds/
2526
obj-y += gyro/

‎drivers/staging/iio/adc/Kconfig‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@
33
#
44
menu "Analog to digital converters"
55

6-
config AD7150
7-
tristate "Analog Devices ad7150/1/6 capacitive sensor driver"
8-
depends on I2C
9-
help
10-
Say yes here to build support for Analog Devices capacitive sensors.
11-
(ad7150, ad7151, ad7156) Provides direct access via sysfs.
12-
13-
config AD7152
14-
tristate "Analog Devices ad7152/3 capacitive sensor driver"
15-
depends on I2C
16-
help
17-
Say yes here to build support for Analog Devices capacitive sensors.
18-
(ad7152, ad7153) Provides direct access via sysfs.
19-
206
config AD7291
217
tristate "Analog Devices AD7291 ADC driver"
228
depends on I2C
@@ -137,16 +123,6 @@ config AD7793
137123
To compile this driver as a module, choose M here: the
138124
module will be called AD7793.
139125

140-
config AD7746
141-
tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver"
142-
depends on I2C
143-
help
144-
Say yes here to build support for Analog Devices capacitive sensors.
145-
(AD7745, AD7746, AD7747) Provides direct access via sysfs.
146-
147-
To compile this driver as a module, choose M here: the
148-
module will be called ad7745.
149-
150126
config AD7816
151127
tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver"
152128
depends on SPI

‎drivers/staging/iio/adc/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ ad7298-y := ad7298_core.o
2929
ad7298-$(CONFIG_IIO_BUFFER) += ad7298_ring.o
3030
obj-$(CONFIG_AD7298) += ad7298.o
3131

32-
obj-$(CONFIG_AD7150) += ad7150.o
33-
obj-$(CONFIG_AD7152) += ad7152.o
3432
obj-$(CONFIG_AD7291) += ad7291.o
35-
obj-$(CONFIG_AD7746) += ad7746.o
3633
obj-$(CONFIG_AD7780) += ad7780.o
3734
obj-$(CONFIG_AD7793) += ad7793.o
3835
obj-$(CONFIG_AD7816) += ad7816.o

‎drivers/staging/iio/cdc/Kconfig‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# CDC drivers
3+
#
4+
menu "Capacitance to digital converters"
5+
6+
config AD7150
7+
tristate "Analog Devices ad7150/1/6 capacitive sensor driver"
8+
depends on I2C
9+
help
10+
Say yes here to build support for Analog Devices capacitive sensors.
11+
(ad7150, ad7151, ad7156) Provides direct access via sysfs.
12+
13+
To compile this driver as a module, choose M here: the
14+
module will be called ad7150.
15+
16+
config AD7152
17+
tristate "Analog Devices ad7152/3 capacitive sensor driver"
18+
depends on I2C
19+
help
20+
Say yes here to build support for Analog Devices capacitive sensors.
21+
(ad7152, ad7153) Provides direct access via sysfs.
22+
23+
To compile this driver as a module, choose M here: the
24+
module will be called ad7152.
25+
26+
config AD7746
27+
tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver"
28+
depends on I2C
29+
help
30+
Say yes here to build support for Analog Devices capacitive sensors.
31+
(AD7745, AD7746, AD7747) Provides direct access via sysfs.
32+
33+
To compile this driver as a module, choose M here: the
34+
module will be called ad7746.
35+
36+
endmenu

‎drivers/staging/iio/cdc/Makefile‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Makefile for industrial I/O DAC drivers
3+
#
4+
5+
obj-$(CONFIG_AD7150) += ad7150.o
6+
obj-$(CONFIG_AD7152) += ad7152.o
7+
obj-$(CONFIG_AD7746) += ad7746.o

0 commit comments

Comments
 (0)