i2c: mux: improve error message for failed symlink
PATCH 1/1 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 Wolfram Sang <[email protected]>
---
Found this while adding a similar message to the demux driver.
drivers/i2c/i2c-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-mux.c +1 -1
@@ -418,7 +418,7 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc,snprintf (symlink_name,sizeof (symlink_name),"channel-%u" , chan_id);WARN (sysfs_create_link (&muxc->dev->kobj, &priv->adap.dev.kobj, 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" ,i2c_adapter_id (&priv->adap));
Signature · 1 line
2.11.0
Peter Rosin
AppliedQuoted 4 lines · Wolfram Sang
Trivial, but still: the failed symlink is not *for* the channel but a link *to* the channel.
Signed-off-by Wolfram Sang <[email protected]>
Applied to i2c-mux/for-next.
Cheers,
Peter