Put the pwmc cdev filenames under the pwm directory along with any label

names.  I.e., everything related to pwm now goes in /dev/pwm.  This will
make it easier for userland tools to turn an unqualified name into a fully
qualified pathname, whether it's the base pwmcX.Y name or a label name.
This commit is contained in:
Ian Lepore 2019-06-17 16:26:43 +00:00
parent d0d71d818c
commit b5d67730ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349143

View File

@ -182,7 +182,7 @@ pwmc_attach(device_t dev)
args.mda_gid = GID_OPERATOR;
args.mda_mode = 0660;
args.mda_si_drv1 = sc;
error = make_dev_s(&args, &sc->cdev, "pwmc%d.%d",
error = make_dev_s(&args, &sc->cdev, "pwm/pwmc%d.%d",
device_get_unit(device_get_parent(dev)), sc->chan);
if (error != 0) {
device_printf(dev, "Failed to make PWM device\n");