summaryrefslogtreecommitdiff
path: root/drivers/iio/multiplexer
AgeCommit message (Collapse)AuthorFilesLines
2017-06-03iio: multiplexer: new iio category and iio-mux driverPeter Rosin3-0/+483
When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the parent iio channel, creating a private copy of the ext_info attributes for each multiplexer state/channel. Reviewed-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>