summaryrefslogtreecommitdiff
path: root/rust/helpers/vmalloc.c
diff options
context:
space:
mode:
authorHans de Goede <hansg@kernel.org>2025-08-31 12:48:21 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-09-10 19:47:04 +0100
commit33f5c69c4daff39c010b3ea6da8ebab285f4277b (patch)
tree009d507968b9771e2cdeb5de3c25c1e1e70069bd /rust/helpers/vmalloc.c
parent0f85406bf830eb8747dd555ab53c9d97ee4af293 (diff)
iio: consumers: Fix offset handling in iio_convert_raw_to_processed()
Fix iio_convert_raw_to_processed() offset handling for channels without a scale attribute. The offset has been applied to the raw64 value not to the original raw value. Use the raw64 value so that the offset is taken into account. Fixes: 14b457fdde38 ("iio: inkern: apply consumer scale when no channel scale is available") Cc: Liam Beguin <liambeguin@gmail.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hansg@kernel.org> Link: https://patch.msgid.link/20250831104825.15097-3-hansg@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions