iio: ensure scan index is unique at device register
authorVlad Dogaru <vlad.dogaru@intel.com>
Mon, 29 Dec 2014 09:37:48 +0000 (11:37 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Jan 2015 18:59:57 +0000 (18:59 +0000)
commit8f5d8727a7736024f28101b922d23754c67c2cc8
tree418ae104979d54a65b9a043035bcdcd6d89eeee6
parentc22d2672c826a67a84fa60c17797315f4c94cedb
iio: ensure scan index is unique at device register

Having two or more channels with the same positive scan_index field
makes no sense if the device supports buffering.  Prevent this situation
by failing to register such a device.

Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c
This page took 0.024597 seconds and 5 git commands to generate.