]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:09 +0000 (11:48 +0100)
commitc13c9da6d86fa9cb6449deb6c71b18ffcf32ae53
treea3b0aa1b107e4c1bacdb89a8214731960799aa84
parentbd7bd0cc3a60e082b17a4f64ce76831aa1c6dffe
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>
drivers/iio/accel/bmc150-accel.c