linux/drivers/staging/iio/impedance-analyzer
Jonathan Cameron c8a9f8056f staging:iio:treewide only use shared to decide on interfaces
Internally the fact that say scale is shared across channels is
actually of remarkably little interest.  Hence lets not store it.
Numerous devices have weird combinations of channels sharing
scale anyway so it is not as though this was really telling
us much. Note however that we do still use the shared sysfs
attrs thus massively reducing the number of attrs in complex
drivers.

Side effect is that certain drivers that were abusing this
(mostly my work) needed to do a few more checks on what the
channel they are being queried on actually is.

This is also helpful for in kernel interfaces where we
just want to query the scale and don't care whether it
is shared with other channels or not.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-26 16:35:04 -08:00
..
Kconfig staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
Makefile iio: impedance-analyzer: New driver for AD5933/4 Impedance Converter, Network Analyzer 2011-08-23 13:37:02 -07:00
ad5933.c staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
ad5933.h iio: impedance-analyzer: New driver for AD5933/4 Impedance Converter, Network Analyzer 2011-08-23 13:37:02 -07:00