Commit 2e57befa authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Jialin Zhang
Browse files

iio: adc: mcp3911: make use of the sign bit

stable inclusion
from stable-v5.10.142
commit e6aeb8be85716d63589414a862bf233483c3e6fe
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6CSFH

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



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

[ Upstream commit 8f89e33b ]

The device supports negative values as well.

Fixes: 3a89b289 ("iio: adc: add support for mcp3911")
Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220722130726.7627-2-marcus.folkesson@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent fb15f229
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment