Re: [PATCH] i2c: mux: improve error message for failed symlink

2018-05-24 Thread Peter Rosin
On 2018-05-21 09:34, Wolfram Sang wrote:
> Trivial, but still: the failed symlink is not *for* the channel but a
> link *to* the channel.
> 
> Signed-off-by: Wolfram Sang 

Applied to i2c-mux/for-next.

Cheers,
Peter


[PATCH] i2c: mux: improve error message for failed symlink

2018-05-21 Thread Wolfram Sang
Trivial, but still: the failed symlink is not *for* the channel but a
link *to* the channel.

Signed-off-by: Wolfram Sang 
---

Found this while adding a similar message to the demux driver.

 drivers/i2c/i2c-mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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(>dev->kobj, >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(>dev, "Added multiplexed i2c bus %d\n",
 i2c_adapter_id(>adap));
 
-- 
2.11.0