]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 23 Jun 2015 12:55:09 +0000 (14:55 +0200)
commit1eb239e34765ab5e06035c78c1eb83e02224c8d3
treead96645ad9b054bd9ca3f3542c1678fa1c7bbd64
parentee365493aff72416a284007ada9c231db8830132
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: Jiri Slaby <jslaby@suse.cz>
drivers/iio/imu/adis16400_core.c