提交 d63a9e85 编写于 作者: A Andy Lutomirski 提交者: Wolfram Sang

i2c: Improve logging on failure to probe for ->class devices

While writing the i2c-imc driver, I noticed that the warning message
when the i2c core can't figure out how to probe is mostly useless.
This trivial patch improves it.
Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 d654b548
......@@ -1665,7 +1665,8 @@ static int i2c_default_probe(struct i2c_adapter *adap, unsigned short addr)
err = i2c_smbus_xfer(adap, addr, 0, I2C_SMBUS_READ, 0,
I2C_SMBUS_BYTE, &dummy);
else {
dev_warn(&adap->dev, "No suitable probing method supported\n");
dev_warn(&adap->dev, "No suitable probing method supported for address 0x%02X\n",
addr);
err = -EOPNOTSUPP;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册