Commit 02a2f833 authored by Ninad Malwade's avatar Ninad Malwade Committed by sanglipeng
Browse files

hwmon: (ina3221) Fix shunt sum critical calculation

stable inclusion
from stable-v5.10.158
commit dddfc03f044b1acb10477dad42d51522368b1fbc
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

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



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

[ Upstream commit b8d27d2c ]

The shunt sum critical limit register value should be left shifted
by one bit as its LSB-0 is a reserved bit.

Fixes: 2057bdfb ("hwmon: (ina3221) Add summation feature support")
Signed-off-by: default avatarNinad Malwade <nmalwade@nvidia.com>
Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20221108044508.23463-1-nmalwade@nvidia.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent dfc9dc29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment