Skip to content

Commit 450d1a8

Browse files
committed
hwmon: (pmbus/max16601) Add support for new revisions of MAX16508
New revisions of MAX16508 report MAX16508.xx or MAX16508y.xx as device ID, but are functionally similar to MAX16508. Add support for those chip variants. Cc: Vlad Sytchenko <vsytch@google.com> Cc: Steve Foreman <foremans@google.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 5e28d5e commit 450d1a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/hwmon/pmbus/max16601.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ static int max16601_get_id(struct i2c_client *client)
283283
return -ENODEV;
284284

285285
/*
286-
* PMBUS_IC_DEVICE_ID is expected to return MAX1660[012]y.xx" or
287-
* "MAX16500y.xx".cdxxcccccccccc
286+
* PMBUS_IC_DEVICE_ID is expected to return MAX1660[012]y.xx",
287+
* "MAX16500y.xx".cdxxcccccccccc, or "MAX16508y.xx".
288288
*/
289-
if (!strncmp(buf, "MAX16500", 8)) {
289+
if (!strncmp(buf, "MAX16500", 8) || !strncmp(buf, "MAX16508", 8)) {
290290
id = max16508;
291291
} else if (!strncmp(buf, "MAX16600", 8)) {
292292
id = max16600;

0 commit comments

Comments
 (0)