summaryrefslogtreecommitdiff
path: root/drivers/iio/industrialio-buffer.c
diff options
context:
space:
mode:
authorVlad Dogaru <vlad.dogaru@intel.com>2014-12-29 11:37:48 +0200
committerJonathan Cameron <jic23@kernel.org>2015-01-05 18:59:57 +0000
commit8f5d8727a7736024f28101b922d23754c67c2cc8 (patch)
tree418ae104979d54a65b9a043035bcdcd6d89eeee6 /drivers/iio/industrialio-buffer.c
parentc22d2672c826a67a84fa60c17797315f4c94cedb (diff)
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>
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
0 files changed, 0 insertions, 0 deletions