summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrea Amer <and.amer@gmail.com>2026-10-26 11:57:38 +0100
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:56:42 +0000
commitc293f0db308fe76a0a9b0f6674cd2dea149b03aa (patch)
tree8fe882e56efa66bc0738e7a3ea735476249aa72d /scripts
parentfd7334314f63a3a2a4927f209b2ca0e33d111840 (diff)
iio: afe: rescale: expose offset if rescaler or source has one
A rescale channel advertises IIO_CHAN_INFO_OFFSET only when its own offset is non-zero. A child rescale therefore hides a source offset, and consumers apply raw * scale and drop it, even though rescale_read_raw() folds the source offset in. Expose the attribute when either the rescaler or the source channel provides an offset. Fixes: a29c3283653b ("iio: afe: rescale: add offset support") Signed-off-by: Andrea Amer <and.amer@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions