public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] iio: accel: adxl345: Add event scaling and doc fixes
@ 2026-02-01 18:33 Taha Ed-Dafili
  2026-02-01 18:33 ` [PATCH v2 1/4] docs: iio: adxl345: fix typos and grammar Taha Ed-Dafili
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Taha Ed-Dafili @ 2026-02-01 18:33 UTC (permalink / raw)
  To: jic23
  Cc: me, skhan, linux-kernel-mentees-archive, rdunlap, dlechner,
	nuno.sa, andy, corbet, lars, Michael.Hennerich, linux-iio,
	linux-doc, linux-kernel, Taha Ed-Dafili

This series addresses ADXL345 driver non-compliance with the IIO ABI
for event thresholds, following feedback from Jonathan Cameron on v1.

Core Changes: During development, I noticed IIO_EV_INFO_SCALE was missing
from the internal IIO core. I've added this constant to the iio_event_info
enum to allow proper ABI compliance. I would appreciate a sanity check on
this infrastructure change.

Testing: This series is compile-tested only, as I do not have access to
physical hardware. Implementation is based on the ADXL345 datasheet.

Changes since v1:
- Added core infrastructure for IIO_EV_INFO_SCALE.
- Implemented event scaling (0.612915 m/s2) for ADXL345.
- Fixed technical math/decimal errors in existing documentation.
- Cleaned up grammar and pluralization issues in .rst file.

Many thanks to Jonathan Cameron for the detailed guidance on v1.

Taha Ed-Dafili (4):
  docs: iio: adxl345: fix typos and grammar
  iio: core: Add IIO_EV_INFO_SCALE to event info
  iio: accel: adxl345: Implement event scaling for ABI compliance
  docs: iio: adxl345: update math and examples for scaling

 Documentation/iio/adxl345.rst    | 63 +++++++++++++++++++-------------
 drivers/iio/accel/adxl345_core.c | 28 +++++++++++---
 drivers/iio/industrialio-event.c |  1 +
 include/linux/iio/types.h        |  1 +
 4 files changed, 62 insertions(+), 31 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-02-07 16:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01 18:33 [PATCH v2 0/4] iio: accel: adxl345: Add event scaling and doc fixes Taha Ed-Dafili
2026-02-01 18:33 ` [PATCH v2 1/4] docs: iio: adxl345: fix typos and grammar Taha Ed-Dafili
2026-02-01 19:03   ` Randy Dunlap
2026-02-02 15:30     ` Taha Ed-Dafili
2026-02-01 18:33 ` [PATCH v2 2/4] iio: core: Add IIO_EV_INFO_SCALE to event info Taha Ed-Dafili
2026-02-01 19:06   ` David Lechner
2026-02-02 15:19     ` Taha Ed-Dafili
2026-02-02 15:31       ` David Lechner
2026-02-07 16:18         ` Jonathan Cameron
2026-02-01 18:33 ` [PATCH v2 3/4] iio: accel: adxl345: Implement event scaling for ABI compliance Taha Ed-Dafili
2026-02-01 18:33 ` [PATCH v2 4/4] docs: iio: adxl345: update math and examples for scaling Taha Ed-Dafili
2026-02-01 19:13   ` David Lechner
2026-02-07 16:20   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox