diff --git a/README b/README index 5f6087b..e432ac5 100644 --- a/README +++ b/README @@ -646,8 +646,10 @@ or dynamically through the udev system. * /dev/dahdi/ctl (196:0) - a general device file for various information and control operations on the DAHDI channels. -* /dev/dahdi/channels/N/M - A device file for channel M in span N - (M is chanpos - numbering relative to the current span). +* /dev/dahdi/chan/N/M - A device file for channel M in span N + - Both N and M are zero padded 3 digit numbers + - Both N and M start at 001 + - M is chanpos - numbering relative to the current span. * /dev/dahdi/NNN (196:NNN) - for NNN in the range 1-249. A device file for DAHDI channel NNN. It can be used to read data from the channel and write data to the channel. It is not generated by default but may diff --git a/drivers/dahdi/dahdi-sysfs-chan.c b/drivers/dahdi/dahdi-sysfs-chan.c index b77e186..4bbb9a3 100644 --- a/drivers/dahdi/dahdi-sysfs-chan.c +++ b/drivers/dahdi/dahdi-sysfs-chan.c @@ -247,7 +247,7 @@ int chan_sysfs_create(struct dahdi_chan *chan) /* * FIXME: the name cannot be longer than KOBJ_NAME_LEN */ - dev_set_name(dev, "dahdi!channels!%d!%d", span->spanno, chan->chanpos); + dev_set_name(dev, "dahdi!chan!%03d!%03d", span->spanno, chan->chanpos); dev_set_drvdata(dev, chan); dev->release = chan_release; res = device_register(dev);