]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iio: multiplexer: new iio category and iio-mux driver
authorPeter Rosin <peda@axentia.se>
Sun, 14 May 2017 19:51:10 +0000 (21:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 10:29:26 +0000 (19:29 +0900)
commit7ba9df54b09117c0a062f9eac4a36b0e70893387
tree2cba6ffaddeaf7451a110ef990e047fecabf9128
parenta36954f58f6c01cb8b19c6424b549464c9495e72
iio: multiplexer: new iio category and iio-mux driver

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>
MAINTAINERS
drivers/iio/Kconfig
drivers/iio/Makefile
drivers/iio/multiplexer/Kconfig [new file with mode: 0644]
drivers/iio/multiplexer/Makefile [new file with mode: 0644]
drivers/iio/multiplexer/iio-mux.c [new file with mode: 0644]