diff options
| author | Andrea Amer <and.amer@gmail.com> | 2026-10-26 11:57:38 +0100 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-11-02 00:56:42 +0000 |
| commit | c293f0db308fe76a0a9b0f6674cd2dea149b03aa (patch) | |
| tree | 8fe882e56efa66bc0738e7a3ea735476249aa72d /kernel/debug/debug_core.c | |
| parent | fd7334314f63a3a2a4927f209b2ca0e33d111840 (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 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions
