From: Vlad Dogaru Date: Mon, 29 Dec 2014 09:37:48 +0000 (+0200) Subject: iio: ensure scan index is unique at device register X-Git-Tag: fixes-v4.0-rc1~99^2~245^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5d8727a7736024f28101b922d23754c67c2cc8;p=pandora-kernel.git 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 Reviewed-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed