]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl345: add FIFO with watermark events
authorLothar Rubusch <l.rubusch@gmail.com>
Sat, 28 Dec 2024 23:29:48 +0000 (23:29 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 4 Jan 2025 13:07:08 +0000 (13:07 +0000)
commitcf04212d1fe750c625bf853bf7dc84cdf7cc1e75
tree79e8b8a3723374b3e3e15ee913ae5e9d3d11fc62
parentaf38b0f6912846611170a262def745cfcc644eee
iio: accel: adxl345: add FIFO with watermark events

Add a basic setup for FIFO with configurable watermark. Add a handler
for watermark interrupt events and extend the channel for the
scan_index needed for the iio channel. The sensor is configurable to use
a FIFO_BYPASSED mode or a FIFO_STREAM mode. For the FIFO_STREAM mode now
a watermark can be configured, or disabled by setting 0. Further features
require a working FIFO setup.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
Link: https://patch.msgid.link/20241228232949.72487-4-l.rubusch@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345.h
drivers/iio/accel/adxl345_core.c