commit | c13c9da6d86fa9cb6449deb6c71b18ffcf32ae53 | [log] [tgz] |
---|---|---|
author | Hartmut Knaack <knaack.h@gmx.de> | Mon Jun 15 23:48:24 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jul 19 11:48:09 2015 +0100 |
tree | a3b0aa1b107e4c1bacdb89a8214731960799aa84 | |
parent | bd7bd0cc3a60e082b17a4f64ce76831aa1c6dffe [diff] |
iio:accel:bmc150-accel: fix counting direction In bmc150_accel_unregister_triggers() triggers should be unregistered in reverse order of registration. Trigger registration starts with number 0, counting up. In consequence, trigger number needs to be count down here. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Reviewed-by: Octavian Purdila <octavian.purdila@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>