From: Octavian Purdila Date: Sat, 31 Jan 2015 00:00:03 +0000 (+0200) Subject: iio: bmc150: refactor slope duration and threshold update X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~102^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=802a3aef30917cc20279d17fe4d0e8568d5c7814;p=pandora-kernel.git iio: bmc150: refactor slope duration and threshold update Move the slope duration and threshold update in a separate function to reduce code duplicate between chip init and motion interrupt setup. Also move the slope update code from the interrupt setup function to the trigger set state function so that we can later refactor the interrupt code. Signed-off-by: Octavian Purdila Acked-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed