Re: [PATCH v4 4/4] docs: iio: adxl345: update math and examples for scaling

From: David Lechner

Date: Sat Feb 21 2026 - 11:50:47 EST


On 2/21/26 8:12 AM, Taha Ed-Dafili wrote:
> Update the documentation to reflect the addition of event scaling
> and correct existing technical errors in scale values.
>
> Key changes:
> - Fix the 62.5 g/LSB typo to 62.5 mg/LSB and add SI unit conversion.
> - Correct decimal precision of in_accel_scale and
> in_accel_scale_available to match the actual SI unit (m/s^2)
> values reported by the driver.
> - Document the newly generated event scale attributes in the ABI table
> (e.g., in_accel_mag_rising_scale, in_accel_gesture_singletap_scale).
> - Also sorted the existing table entries alphabetically as suggested
> by David Lechner.

If we do a v5, it would be nice to do the sorting in PATCH 1/4 since
we are already doing tidying there. It would make it easier to see the
actual changes here.

> - Add a sysfs example showing how to read and interpret the newly
> implemented event scale factor.
>