diff options
author | Vlad Dogaru <vlad.dogaru@intel.com> | 2014-12-29 12:37:48 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-01-05 21:59:57 +0300 |
commit | 8f5d8727a7736024f28101b922d23754c67c2cc8 (patch) | |
tree | 418ae104979d54a65b9a043035bcdcd6d89eeee6 /drivers/iio/industrialio-buffer.c | |
parent | c22d2672c826a67a84fa60c17797315f4c94cedb (diff) | |
download | linux-8f5d8727a7736024f28101b922d23754c67c2cc8.tar.xz |
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