commit | 8f5d8727a7736024f28101b922d23754c67c2cc8 | [log] [tgz] |
---|---|---|
author | Vlad Dogaru <vlad.dogaru@intel.com> | Mon Dec 29 11:37:48 2014 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Mon Jan 05 18:59:57 2015 +0000 |
tree | 418ae104979d54a65b9a043035bcdcd6d89eeee6 | |
parent | c22d2672c826a67a84fa60c17797315f4c94cedb [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>