OSDN Git Service

hwmon: (pmbus/ibm-cffps) Use MFR_ID to choose version
authorBrandon Wyman <bjwyman@gmail.com>
Mon, 4 Oct 2021 14:43:39 +0000 (14:43 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 12 Oct 2021 14:22:41 +0000 (07:22 -0700)
commit8a5cfcfa9445987719b1f82b7bcabe5eb27187cf
treececc23cb3d63d523ee95cfb68bc18300017992d4
parenta111ec399c60a860209205a9e303b4d4a9274968
hwmon: (pmbus/ibm-cffps) Use MFR_ID to choose version

There are multiple power supplies that will indicate
CFFPS_CCIN_VERSION_1, use the manufacturer ID to determine if it should
be treated as version cffps1 or version cffps2.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Link: https://lore.kernel.org/r/20211004144339.2634330-2-bjwyman@gmail.com
[groeck: Fixed continuation line alignment]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ibm-cffps.c