]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
driver: (adm1275) set the m,b and R coefficients correctly for power
authorShikhar Dogra <shidogra@cisco.com>
Mon, 27 Mar 2017 23:16:44 +0000 (16:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:23:22 +0000 (09:23 +0100)
commitc3b33bdd9b85d9faad9b99158e05d481b3f5cb88
treeb1ab2c01b48a12f11c68e73578b18f14a22da78e
parent3cd99a14aa3730e45aac7b4e9472181686796985
driver: (adm1275) set the m,b and R coefficients correctly for power

[ Upstream commit 6faecba0b3da7b617bf72bef422bf0d3bb6dfe7d ]

Seems like coefficient values for m, b and R under power have been
put in the wrong order. Rearranging them properly to get correct
values of coefficients for power.

For specs, please refer to table 7 (page 35) on
http://www.analog.com/media/en/technical-documentation/data-sheets/ADM1075.pdf

Fixes: 904b296f308d ("hwmon: (adm1275) Introduce configuration data structure for coeffcients")
Signed-off-by: Shikhar Dogra <shidogra@cisco.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/pmbus/adm1275.c