commit | 7a1d0d91c94305fa5802a53df3a54c0ea1963c48 | [log] [tgz] |
---|---|---|
author | Hartmut Knaack <knaack.h@gmx.de> | Mon Jun 15 23:48:24 2015 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jun 21 14:42:28 2015 +0100 |
tree | c54195fc83d65afa1a3fa9abd43ddec9619746e2 | |
parent | c288503b32e8c5534062a05ec565d28bffa06db3 [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>