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: NGerlando Falauto <gerlando.falauto@keymile.com> [wsa: simplified sysfs-usage and fixed format string usage] Signed-off-by: NWolfram Sang <wsa@the-dreams.de> Acked-by: NMartin Belanger <martin.belanger@cyaninc.com> Acked-by: NDanielle Costantino <danielle.costantino@gmail.com>
Showing
想要评论请 注册 或 登录