]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i2c: mux: improve error message for failed symlink
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 21 May 2018 07:34:13 +0000 (09:34 +0200)
committerPeter Rosin <peda@axentia.se>
Thu, 24 May 2018 11:42:40 +0000 (13:42 +0200)
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>
drivers/i2c/i2c-mux.c

index 9669ca4937b891063d4cd63e552344d818f5eefa..300ab4b672e4992921b164a40d77d9e426fda305 100644 (file)
@@ -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));