aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/Makefile
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2012-02-15 19:48:01 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 12:10:02 -0800
commite27d75d71c0dbbab83768c6e327d13f445d0214f (patch)
tree3076216ea6fba337f8a88351c35f40427fa86301 /drivers/staging/iio/Makefile
parentstaging:iio:core set the iio_dev.info pointer to null on unregister under lock. (diff)
downloadlinux-dev-e27d75d71c0dbbab83768c6e327d13f445d0214f.tar.xz
linux-dev-e27d75d71c0dbbab83768c6e327d13f445d0214f.zip
staging:iio:core add in kernel interface mapping and getting IIO channels.
Lifted from proposal for in kernel interface built on the out of staging branch. Two elements here: * Map as defined in "inkern.h" * Matching code to actually get the iio_dev and channel that we want from the global list of IIO devices. V4: Everything now built if iio is built (rather than being optional) Removal race condition prevented by using info pointer as a check of removal under a lock. V3: Drop the option of registering / getting channels using dev pointer. Stick to name only as suggested by Mark Brown (this has caused user confusion in the regulator framework.) V2: As per Greg KH suggestion, move over to registration by passing the tables into the provider drivers (how regulator does it). This does not prevent us using the original more flexible approach if at a later date there is a usecase that demands it. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/Makefile')
-rw-r--r--drivers/staging/iio/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/Makefile b/drivers/staging/iio/Makefile
index 657710b266b0..ff059d448c2e 100644
--- a/drivers/staging/iio/Makefile
+++ b/drivers/staging/iio/Makefile
@@ -3,7 +3,7 @@
#
obj-$(CONFIG_IIO) += industrialio.o
-industrialio-y := industrialio-core.o industrialio-event.o
+industrialio-y := industrialio-core.o industrialio-event.o inkern.o
industrialio-$(CONFIG_IIO_BUFFER) += industrialio-buffer.o
industrialio-$(CONFIG_IIO_TRIGGER) += industrialio-trigger.o