git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6da9b38
)
iio: bmc150: refactor slope duration and threshold update
author
Octavian Purdila
<octavian.purdila@intel.com>
Sat, 31 Jan 2015 00:00:03 +0000
(
02:00
+0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 8 Feb 2015 10:36:41 +0000
(10:36 +0000)
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 <octavian.purdila@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c
patch
|
blob
|
history
diff --cc
drivers/iio/accel/bmc150-accel.c
Simple merge