Muxes: Add symlink to /dev/i2c* support
It is difficult to tell what mux is what i2c channel
when looking at sysfs or d-bus alone. This creates
/dev/mux/<muxname>/<channelname> symlinks to aid other
applications.
Tested-by:
ls /dev/i2c-mux/Riser_*
/dev/mux/Riser_1_Mux:
PcieSlot1 PcieSlot2 PcieSlot3
/dev/i2c-mux/Riser_2_Mux:
PcieSlot1 PcieSlot2 PcieSlot3
Change-Id: I3485d87ad2546d4bc27092bac91d6add59250736
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/devices.hpp b/include/devices.hpp
index 2756731..24cba32 100644
--- a/include/devices.hpp
+++ b/include/devices.hpp
@@ -50,6 +50,9 @@
{"PCA9545Mux",
ExportTemplate("pca9545 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"PCA9546Mux",
+ ExportTemplate("pca9546 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"pmbus", ExportTemplate("pmbus $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"TMP75", ExportTemplate("tmp75 $Address",