]> 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)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:30:40 +0000 (22:30 +0100)
commita7b6fe4a5a96257cd168cc1d1725b84f9ce6dcf4
treeca908f0389835a9663b47822a29772c93be46de5
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
iio: adc: mcp3911: make use of the sign bit

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>
drivers/iio/adc/mcp3911.c