]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: rtq6056: Correct the sign bit index
authorChiYuan Huang <cy_huang@richtek.com>
Thu, 18 Sep 2025 03:10:59 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:24:58 +0000 (06:24 +0900)
commit45abbbdb46578f2008b24615ec1570e48880e81d
treef9c597b2574f4f942e9d31b2dd778adfded74413
parent6656fbfee4f42e0c48b680514d1007df7126b289
iio: adc: rtq6056: Correct the sign bit index

commit 9b45744bf09fc2a3287e05287141d6e123c125a7 upstream.

The vshunt/current reported register is a signed 16bit integer. The
sign bit index should be '15', not '16'.

Fixes: 4396f45d211b ("iio: adc: Add rtq6056 support")
Reported-by: Andy Hsu <andy_ya_hsu@wiwynn.com>
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/rtq6056.c