Re: iio: accel: dmard09: in_accel_scale always returns -EINVAL
From: Mert Seftali
Date: Fri Jun 19 2026 - 08:10:26 EST
Hi Joshua,
Thanks for digging into this, their bust explains the missing datasheet.
On the dmard06 sheet, i don't think it carries over though. dmard06 is
a different part as far as i understood: that driver works on an 8-bit
sample with its own scale,
while dmard09 does its own undocumented bit-twiddling on a 16-bit read
(the "<<4 >>7, remove lower
3 bits" dance). Different sample format, and dmard09's resolution isn't
even spelled out in the code, so even with dmard06's range i'd be
guessing dmard09's scale, which is the bit i wanted to avoid.
So unless the real dmard09 numbers turn up, dropping the dead scale
declaration still looks like the honest fix imo. Happy either way once
Jonathan weighs in.
Mert