summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh
diff options
context:
space:
mode:
authorIvan T. Ivanov <iivanov@mm-sol.com>2014-10-22 18:29:43 +0300
committerJonathan Cameron <jic23@kernel.org>2014-10-25 11:03:40 +0100
commitacd8256723f286b7217801fbed24503f8565b91e (patch)
tree1cde7b390ee2e9afb3981a0c6368b6f9042ebcc3 /drivers/dma/sh
parenta9bef750135cc261bfceff6840a30a3f357df8da (diff)
downloadop-kernel-dev-acd8256723f286b7217801fbed24503f8565b91e.zip
op-kernel-dev-acd8256723f286b7217801fbed24503f8565b91e.tar.gz
iio: inkern: Add of_xlate function to struct iio_info
When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Add simple translation function, suitable for the most 1:1 mapped channels in IIO chips, and use it when driver did not provide custom implementation. Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/dma/sh')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud