summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-mux.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2018-05-21 09:34:13 +0200
committerPeter Rosin <peda@axentia.se>2018-05-24 13:42:40 +0200
commitf657c9fe26888274b9d22ad3cdc796dd945be8aa (patch)
tree7939e7224c569a4b86fee07cbbe3da06f1e77d1e /drivers/i2c/i2c-mux.c
parenti2c: mux: reg: failed memory allocation is logged elsewhere (diff)
downloadlinux-f657c9fe26888274b9d22ad3cdc796dd945be8aa.tar.xz
linux-f657c9fe26888274b9d22ad3cdc796dd945be8aa.zip
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 <wsa+renesas@sang-engineering.com> Signed-off-by: Peter Rosin <peda@axentia.se>
Diffstat (limited to 'drivers/i2c/i2c-mux.c')
-rw-r--r--drivers/i2c/i2c-mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c
index 9669ca4937b8..300ab4b672e4 100644
--- a/drivers/i2c/i2c-mux.c
+++ b/drivers/i2c/i2c-mux.c
@@ -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));