Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d707562 authored by Puneet yatnala's avatar Puneet yatnala Committed by Gerrit - the friendly Code Review server
Browse files

driver: iio: imu: asm330 early buffer implemented



This patch allows to buffer ST-ASM330 accel and gyro samples from driver
up to time till user space services are up and running
(or upto nth second). Buffered samples can be retrived at any time via
input subsystem by writing to below sysfs entry.

echo 1 > /sys/bus/iio/devices/iio:device0/read_acc_boot_sample
echo 1 > /sys/bus/iio/devices/iio:device0/read_gyro_boot_sample

Use config option to enable buffering feature.

CRs-Fixed: 2285363
Change-Id: I81743dae8ad0fd60b95f3e8385ecbf0f17c0537f
Signed-off-by: default avatarPuneet yatnala <puneet@codeaurora.org>
Signed-off-by: default avatarpuneet <puneet@codeaurora.org>
parent 1e442642
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment