2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/drivers/staging/iio
Jonathan Cameron e27d75d71c 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>
2012-02-24 12:10:02 -08:00
..
accel staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
adc staging: iio: LPC32xx: ADC driver 2012-02-15 17:21:43 -08:00
addac Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
cdc staging:iio: Rename IIO_EVENT_CODE_EXTRACT_NUM to IIO_EVENT_CODE_EXTRACT_CHAN 2012-02-13 20:10:32 -08:00
dac staging:iio:dac: Fix kcalloc parameters swapped 2012-02-13 20:09:38 -08:00
dds staging:iio:dds:ad9834 unwind use of is_visible for attrs. 2012-02-09 10:06:05 -08:00
Documentation staging:iio: Add event monitor example application 2012-02-13 20:10:32 -08:00
gyro staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
impedance-analyzer staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
imu staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
light staging:iio: isl29018: add of_match table for device-tree probing 2012-02-09 10:03:51 -08:00
magnetometer staging:iio: ak8975: add of_match table for device-tree probing 2012-02-09 10:03:51 -08:00
meter staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
resolver Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
trigger staging:iio: iio_trigger contains defunct owner field. Remove it. 2011-12-16 10:56:26 -08:00
buffer.h staging:iio: Drop {mark,unmark}_in_use callbacks 2011-12-22 13:38:10 -08:00
consumer.h staging:iio:core add in kernel interface mapping and getting IIO channels. 2012-02-24 12:10:02 -08:00
driver.h staging:iio:core add in kernel interface mapping and getting IIO channels. 2012-02-24 12:10:02 -08:00
events.h staging:iio: Add missing event code extract macros 2012-02-13 20:10:32 -08:00
iio_core_trigger.h staging:iio:triggers Remove unecessary existence checks and return val 2011-11-26 16:30:30 -08:00
iio_core.h staging:iio: Factor out event handling into its own file 2012-02-09 10:05:06 -08:00
iio_dummy_evgen.c iio: Don't OOPS if dummy evgen failed init 2011-11-26 16:52:44 -08:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_simple_dummy_buffer.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
iio_simple_dummy_events.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
iio_simple_dummy.c staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
iio_simple_dummy.h staging:iio:dummy Add buffered reading support 2011-10-17 15:36:30 -07:00
iio.h staging:iio:core set the iio_dev.info pointer to null on unregister under lock. 2012-02-24 12:10:02 -08:00
industrialio-buffer.c staging:iio: Drop {mark,unmark}_in_use callbacks 2011-12-22 13:38:10 -08:00
industrialio-core.c staging:iio:core set the iio_dev.info pointer to null on unregister under lock. 2012-02-24 12:10:02 -08:00
industrialio-event.c staging:iio:events: Remove obsolete documentation 2012-02-13 20:10:32 -08:00
industrialio-trigger.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2012-01-09 12:18:17 -08:00
inkern.c staging:iio:core add in kernel interface mapping and getting IIO channels. 2012-02-24 12:10:02 -08:00
Kconfig staging: iio: drop "select IIO_SIMPLE_DUMMY_EVGEN" 2011-11-26 16:43:38 -08:00
kfifo_buf.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
kfifo_buf.h staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
machine.h staging:iio:core add in kernel interface mapping and getting IIO channels. 2012-02-24 12:10:02 -08:00
Makefile staging:iio:core add in kernel interface mapping and getting IIO channels. 2012-02-24 12:10:02 -08:00
ring_hw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.c staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
ring_sw.h staging:iio: Setup buffer access functions when allocating the buffer 2012-02-09 10:03:51 -08:00
sysfs.h staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
TODO staging: iio: add ADI info to TODO 2010-11-09 15:46:32 -08:00
trigger_consumer.h staging:iio: treewide rename iio_triggered_ring_* to iio_triggered_buffer_* 2011-09-26 17:31:52 -07:00
trigger.h staging:iio: iio_trigger contains defunct owner field. Remove it. 2011-12-16 10:56:26 -08:00
types.h staging:iio: Fix typo 2011-12-08 12:15:44 -08:00