提交 f657c9fe 编写于 作者: W Wolfram Sang 提交者: Peter Rosin

i2c: mux: improve error message for failed symlink

Trivial, but still: the failed symlink is not *for* the channel but a
link *to* the channel.
Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: NPeter Rosin <peda@axentia.se>
上级 b30c08a2
...@@ -418,7 +418,7 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc, ...@@ -418,7 +418,7 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc,
snprintf(symlink_name, sizeof(symlink_name), "channel-%u", chan_id); snprintf(symlink_name, sizeof(symlink_name), "channel-%u", chan_id);
WARN(sysfs_create_link(&muxc->dev->kobj, &priv->adap.dev.kobj, WARN(sysfs_create_link(&muxc->dev->kobj, &priv->adap.dev.kobj,
symlink_name), symlink_name),
"can't create symlink for channel %u\n", chan_id); "can't create symlink to channel %u\n", chan_id);
dev_info(&parent->dev, "Added multiplexed i2c bus %d\n", dev_info(&parent->dev, "Added multiplexed i2c bus %d\n",
i2c_adapter_id(&priv->adap)); i2c_adapter_id(&priv->adap));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册