aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/q54sj108a2.c
diff options
context:
space:
mode:
authorChu Lin <linchuyuan@google.com>2021-05-17 22:26:06 +0000
committerGuenter Roeck <linux@roeck-us.net>2021-05-17 16:02:05 -0700
commitf0fb26c456a30d6009faa2c9d44aa22f5bf88c90 (patch)
tree43f8d2e565893a8fc1a2d8f342b4082d7f18aa39 /drivers/hwmon/pmbus/q54sj108a2.c
parenthwmon: (pmbus/isl68137) remove READ_TEMPERATURE_3 for RAA228228 (diff)
downloadlinux-dev-f0fb26c456a30d6009faa2c9d44aa22f5bf88c90.tar.xz
linux-dev-f0fb26c456a30d6009faa2c9d44aa22f5bf88c90.zip
hwmon/pmbus: (q54sj108a2) The PMBUS_MFR_ID is actually 6 chars instead of 5
The PMBUS_MFR_ID block is actually 6 chars for q54sj108a2. /sys/bus/i2c/drivers/q54sj108a2_test# iotools smbus_read8 $BUS $ADDR 0x99 0x06 Tested: Devices are able to bind to the q54sj108a2 driver successfully. Signed-off-by: Chu Lin <linchuyuan@google.com> Link: https://lore.kernel.org/r/20210517222606.3457594-1-linchuyuan@google.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/q54sj108a2.c')
-rw-r--r--drivers/hwmon/pmbus/q54sj108a2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/q54sj108a2.c b/drivers/hwmon/pmbus/q54sj108a2.c
index b6e8b20466f1..fa298b4265a1 100644
--- a/drivers/hwmon/pmbus/q54sj108a2.c
+++ b/drivers/hwmon/pmbus/q54sj108a2.c
@@ -299,7 +299,7 @@ static int q54sj108a2_probe(struct i2c_client *client)
dev_err(&client->dev, "Failed to read Manufacturer ID\n");
return ret;
}
- if (ret != 5 || strncmp(buf, "DELTA", 5)) {
+ if (ret != 6 || strncmp(buf, "DELTA", 5)) {
buf[ret] = '\0';
dev_err(dev, "Unsupported Manufacturer ID '%s'\n", buf);
return -ENODEV;