iio:accel:bmc150-accel: fix counting direction
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 15 Jun 2015 21:48:24 +0000 (23:48 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Jun 2015 13:42:28 +0000 (14:42 +0100)
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>

No differences found