diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2012-02-15 19:48:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-24 20:10:02 (GMT) |
commit | e27d75d71c0dbbab83768c6e327d13f445d0214f (patch) | |
tree | 3076216ea6fba337f8a88351c35f40427fa86301 /drivers/staging/iio/Makefile | |
parent | ac917a81117ce0286847666b55dd265f6cda8383 (diff) | |
download | linux-e27d75d71c0dbbab83768c6e327d13f445d0214f.tar.xz |
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/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/Makefile b/drivers/staging/iio/Makefile index 657710b..ff059d4 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 |