Skip to contentSkip to conversation

i2c: mux: improve error message for failed symlink

PATCH Applied Wolfram Sang 2 participants 2 messages May 21, 2018 – May 24, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

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
index 9669ca4937b8..300ab4b672e4 100644
@@ -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
Applied
#1 lore raw
Quoted 4 lines · Wolfram Sang

Trivial, but still: the failed symlink is not *for* the channel but a link *to* the channel.

Applied to i2c-mux/for-next.

Cheers,
Peter