summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2016-01-16 15:35:20 +0100
committerJonathan Cameron <jic23@kernel.org>2016-01-23 17:27:35 +0100
commit4b04266abe3ea0c5c8f7a82b4d69f0f8e1e81b0a (patch)
treeccb8019a0388d09b5930a4f95025b7859a1570fe /.gitignore
parentiio:adc:at91-sama5d2: code cleanup (diff)
downloadlinux-4b04266abe3ea0c5c8f7a82b4d69f0f8e1e81b0a.tar.xz
linux-4b04266abe3ea0c5c8f7a82b4d69f0f8e1e81b0a.zip
iio: mma8452: add freefall detection for Freescale's accelerometers
This adds freefall event detection to the supported devices. It adds the in_accel_x&y&z_mag_falling_en iio event attribute, which activates freefall mode. In freefall mode, the current acceleration magnitude (AND combination of all axis values) is compared to the specified threshold. If it falls under the threshold (in_accel_mag_falling_value), the appropriate IIO event code is generated. This is what the sysfs "events" directory for these devices looks like after this change: -rw-r--r-- 4096 Oct 23 08:45 in_accel_mag_falling_period -rw-r--r-- 4096 Oct 23 08:45 in_accel_mag_falling_value -rw-r--r-- 4096 Oct 23 08:45 in_accel_mag_rising_period -rw-r--r-- 4096 Oct 23 08:45 in_accel_mag_rising_value -r--r--r-- 4096 Oct 23 08:45 in_accel_scale -rw-r--r-- 4096 Oct 23 08:45 in_accel_x&y&z_mag_falling_en -rw-r--r-- 4096 Oct 23 08:45 in_accel_x_mag_rising_en -rw-r--r-- 4096 Oct 23 08:45 in_accel_y_mag_rising_en -rw-r--r-- 4096 Oct 23 08:45 in_accel_z_mag_rising_en Signed-off-by: Martin Kepplinger <martin.kepplinger@theobroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions