Commit 19e74a0d authored by Michael Hennerich's avatar Michael Hennerich Committed by Zheng Zengkai
Browse files

iio: dac: ad5446: Fix read_raw not returning set value

stable inclusion
from stable-v5.10.114
commit 1060604fc7f2e0fdf083e13c2d0a471e95342c90
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5IY1V

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1060604fc7f2e0fdf083e13c2d0a471e95342c90



--------------------------------

commit 89a01cd6 upstream.

read_raw should return the un-scaled value.

Fixes: 5e06bdfb ("staging:iio:dac:ad5446: Return cached value for 'raw' attribute")
Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Reviewed-by: default avatarNuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220406105620.1171340-1-michael.hennerich@analog.com


Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 6a93eb1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment