OSDN Git Service

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)
committerJonathan Cameron <jic23@kernel.org>
Sat, 16 May 2015 09:57:07 +0000 (10:57 +0100)
commit7323d59862802ca109451eeda9777024a7625509
tree0d32234b57d546b5e5cd61dcea8144fabd99d684
parent69ca2d771e4e709c5ae1125858e1246e77ef8b86
iio: adis16400: Use != channel indices for the two voltage channels

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/adis16400_core.c