提交 475200c0 编写于 作者: J Jean Delvare 提交者: Guenter Roeck

hwmon: (ltc4261) Fix error message format

adapter->id is deprecated and not set by any adapter driver, so this
was certainly not what the author wanted to use. adapter->nr maybe,
but as dev_err() already includes this value, as well as the client's
address, there's no point repeating them. Better print a simple error
message in plain English words.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
上级 69f8b741
...@@ -230,8 +230,7 @@ static int ltc4261_probe(struct i2c_client *client, ...@@ -230,8 +230,7 @@ static int ltc4261_probe(struct i2c_client *client,
return -ENODEV; return -ENODEV;
if (i2c_smbus_read_byte_data(client, LTC4261_STATUS) < 0) { if (i2c_smbus_read_byte_data(client, LTC4261_STATUS) < 0) {
dev_err(&client->dev, "Failed to read register %d:%02x:%02x\n", dev_err(&client->dev, "Failed to read status register\n");
adapter->id, client->addr, LTC4261_STATUS);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册