]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio:accel:bmc150-accel: fix counting direction
authorHartmut Knaack <knaack.h@gmx.de>
Mon, 15 Jun 2015 21:48:24 +0000 (23:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:01 +0000 (09:29 -0700)
commit5354bc06756b59dc89d6ce24658e747e6753a926
tree9442cde7907418b5e68594e1e33efa87a8e2c8b5
parent62d59f98d13440855e140a68ba6996fd3ff89b50
iio:accel:bmc150-accel: fix counting direction

commit 7a1d0d91c94305fa5802a53df3a54c0ea1963c48 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/bmc150-accel.c