]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: mcp3911: make use of the sign bit
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Fri, 22 Jul 2022 13:07:18 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:50 +0000 (12:04 +0200)
commit79fc020d413d91b451f616bcc7ee2bfb98fad503
tree3d7af7c749e42b77e5bd6267ee631c0ca4ed45c0
parentbbd59f87e2051002dd81dbc772bd155dc26fbe8d
iio: adc: mcp3911: make use of the sign bit

[ Upstream commit a7b6fe4a5a96257cd168cc1d1725b84f9ce6dcf4 ]

The device supports negative values as well.

Fixes: 162317baab38 ("iio: adc: add support for mcp3911")
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220722130726.7627-2-marcus.folkesson@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/mcp3911.c