iio: adis16400: Use != channel indices for the two voltage channels
authorPaul Cercueil <paul.cercueil@analog.com>
Fri, 15 May 2015 15:18:35 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2015 23:55:51 +0000 (16:55 -0700)
commitbeed1a251c8a3b3ba2777c5e75db4cfa23b463ae
tree88c2ba0de2317a1ca274ff91ad45499167ffd42d
parent3b9f2aa3a7ddebad0641303c6dd78221c98d23d3
iio: adis16400: Use != channel indices for the two voltage channels

commit 7323d59862802ca109451eeda9777024a7625509 upstream.

Previously, the two voltage channels had the same ID, which didn't cause
conflicts in sysfs only because one channel is named and the other isn't;
this is still violating the spec though, two indexed channels should never
have the same index.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/adis16400_core.c