Skip to content
Commit c9449aff authored by Gerlando Falauto's avatar Gerlando Falauto Committed by Wolfram Sang
Browse files

i2c: mux: create "channel-n" symlinks for child segments in the mux device



This makes the topology clearer. For instance, by adding a pca9547
device with address 0x70 to bus i2c-0, you get:

/sys/class/i2c-dev/i2c-0/device/0-0070/channel-0 -> i2c-1
...
/sys/class/i2c-dev/i2c-0/device/0-0070/channel-7 -> i2c-8

Signed-off-by: default avatarGerlando Falauto <gerlando.falauto@keymile.com>
[wsa: simplified sysfs-usage and fixed format string usage]
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Acked-by: default avatarMartin Belanger <martin.belanger@cyaninc.com>
Acked-by: default avatarDanielle Costantino <danielle.costantino@gmail.com>
parent 51cf3b0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment