]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl345: Expose IIO_EV_INFO_VALUE for double tap
authorTaha Ed-Dafili <0rayn.dev@gmail.com>
Thu, 26 Feb 2026 15:11:04 +0000 (15:11 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 Mar 2026 12:04:16 +0000 (12:04 +0000)
commitda29db0bcc95fb554ce9969ab57ba8f84c405be7
tree788b0a856893579fbd1859c21ffb4234dab91b60
parent2a76a626670b2ef391da37f457e8e51f168432a6
iio: accel: adxl345: Expose IIO_EV_INFO_VALUE for double tap

The ADXL345 uses a single hardware register (ADXL345_REG_THRESH_TAP) to
store the threshold for both single tap and double tap events.

Currently, the driver only exposes the IIO_EV_INFO_VALUE attribute for
the single tap event.

However, the IIO ABI dictates that if an event is supported, its
associated configuration attributes should be exposed to userspace. This
applies even if writing to one channel property alters the value of
another due to shared underlying hardware state.

Add IIO_EV_INFO_VALUE to the double tap event specification to ensure
full ABI compliance.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Taha Ed-Dafili <0rayn.dev@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345_core.c