diff options
-rw-r--r-- | drivers/iio/Kconfig | 3 | ||||
-rw-r--r-- | drivers/iio/Makefile | 1 | ||||
-rw-r--r-- | drivers/iio/trigger/Kconfig | 17 | ||||
-rw-r--r-- | drivers/iio/trigger/Makefile | 5 | ||||
-rw-r--r-- | drivers/iio/trigger/iio-trig-sysfs.c (renamed from drivers/staging/iio/trigger/iio-trig-sysfs.c) | 0 | ||||
-rw-r--r-- | drivers/staging/iio/trigger/Kconfig | 11 | ||||
-rw-r--r-- | drivers/staging/iio/trigger/Makefile | 1 |
7 files changed, 26 insertions, 12 deletions
diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig index b2f963be3993..daa3dddbc77f 100644 --- a/drivers/iio/Kconfig +++ b/drivers/iio/Kconfig | |||
@@ -70,5 +70,8 @@ source "drivers/iio/gyro/Kconfig" | |||
70 | source "drivers/iio/imu/Kconfig" | 70 | source "drivers/iio/imu/Kconfig" |
71 | source "drivers/iio/light/Kconfig" | 71 | source "drivers/iio/light/Kconfig" |
72 | source "drivers/iio/magnetometer/Kconfig" | 72 | source "drivers/iio/magnetometer/Kconfig" |
73 | if IIO_TRIGGER | ||
74 | source "drivers/iio/trigger/Kconfig" | ||
75 | endif #IIO_TRIGGER | ||
73 | 76 | ||
74 | endif # IIO | 77 | endif # IIO |
diff --git a/drivers/iio/Makefile b/drivers/iio/Makefile index a0e8cdd67e4d..a349a9605d1f 100644 --- a/drivers/iio/Makefile +++ b/drivers/iio/Makefile | |||
@@ -21,3 +21,4 @@ obj-y += frequency/ | |||
21 | obj-y += imu/ | 21 | obj-y += imu/ |
22 | obj-y += light/ | 22 | obj-y += light/ |
23 | obj-y += magnetometer/ | 23 | obj-y += magnetometer/ |
24 | obj-y += trigger/ | ||
diff --git a/drivers/iio/trigger/Kconfig b/drivers/iio/trigger/Kconfig new file mode 100644 index 000000000000..a4e68db2f23f --- /dev/null +++ b/drivers/iio/trigger/Kconfig | |||
@@ -0,0 +1,17 @@ | |||
1 | # | ||
2 | # Industrial I/O standalone triggers | ||
3 | # | ||
4 | menu "Triggers - standalone" | ||
5 | |||
6 | config IIO_SYSFS_TRIGGER | ||
7 | tristate "SYSFS trigger" | ||
8 | depends on SYSFS | ||
9 | select IRQ_WORK | ||
10 | help | ||
11 | Provides support for using SYSFS entry as IIO triggers. | ||
12 | If unsure, say N (but it's safe to say "Y"). | ||
13 | |||
14 | To compile this driver as a module, choose M here: the | ||
15 | module will be called iio-trig-sysfs. | ||
16 | |||
17 | endmenu | ||
diff --git a/drivers/iio/trigger/Makefile b/drivers/iio/trigger/Makefile new file mode 100644 index 000000000000..e0b21831072f --- /dev/null +++ b/drivers/iio/trigger/Makefile | |||
@@ -0,0 +1,5 @@ | |||
1 | # | ||
2 | # Makefile for triggers not associated with iio-devices | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o | ||
diff --git a/drivers/staging/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c index b727bde8b7fe..b727bde8b7fe 100644 --- a/drivers/staging/iio/trigger/iio-trig-sysfs.c +++ b/drivers/iio/trigger/iio-trig-sysfs.c | |||
diff --git a/drivers/staging/iio/trigger/Kconfig b/drivers/staging/iio/trigger/Kconfig index 1a051da62505..ae9fcd3382ea 100644 --- a/drivers/staging/iio/trigger/Kconfig +++ b/drivers/staging/iio/trigger/Kconfig | |||
@@ -18,17 +18,6 @@ config IIO_GPIO_TRIGGER | |||
18 | help | 18 | help |
19 | Provides support for using GPIO pins as IIO triggers. | 19 | Provides support for using GPIO pins as IIO triggers. |
20 | 20 | ||
21 | config IIO_SYSFS_TRIGGER | ||
22 | tristate "SYSFS trigger" | ||
23 | depends on SYSFS | ||
24 | select IRQ_WORK | ||
25 | help | ||
26 | Provides support for using SYSFS entry as IIO triggers. | ||
27 | If unsure, say N (but it's safe to say "Y"). | ||
28 | |||
29 | To compile this driver as a module, choose M here: the | ||
30 | module will be called iio-trig-sysfs. | ||
31 | |||
32 | config IIO_BFIN_TMR_TRIGGER | 21 | config IIO_BFIN_TMR_TRIGGER |
33 | tristate "Blackfin TIMER trigger" | 22 | tristate "Blackfin TIMER trigger" |
34 | depends on BLACKFIN | 23 | depends on BLACKFIN |
diff --git a/drivers/staging/iio/trigger/Makefile b/drivers/staging/iio/trigger/Makefile index b088b57da335..8a5304153b5b 100644 --- a/drivers/staging/iio/trigger/Makefile +++ b/drivers/staging/iio/trigger/Makefile | |||
@@ -4,5 +4,4 @@ | |||
4 | 4 | ||
5 | obj-$(CONFIG_IIO_PERIODIC_RTC_TRIGGER) += iio-trig-periodic-rtc.o | 5 | obj-$(CONFIG_IIO_PERIODIC_RTC_TRIGGER) += iio-trig-periodic-rtc.o |
6 | obj-$(CONFIG_IIO_GPIO_TRIGGER) += iio-trig-gpio.o | 6 | obj-$(CONFIG_IIO_GPIO_TRIGGER) += iio-trig-gpio.o |
7 | obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o | ||
8 | obj-$(CONFIG_IIO_BFIN_TMR_TRIGGER) += iio-trig-bfin-timer.o | 7 | obj-$(CONFIG_IIO_BFIN_TMR_TRIGGER) += iio-trig-bfin-timer.o |