svn commit: r349143 - head/sys/dev/pwm
Ian Lepore
ian at FreeBSD.org
Mon Jun 17 16:26:44 UTC 2019
Author: ian
Date: Mon Jun 17 16:26:43 2019
New Revision: 349143
URL: https://svnweb.freebsd.org/changeset/base/349143
Log:
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.
Modified:
head/sys/dev/pwm/pwmc.c
Modified: head/sys/dev/pwm/pwmc.c
==============================================================================
--- head/sys/dev/pwm/pwmc.c Mon Jun 17 15:14:26 2019 (r349142)
+++ head/sys/dev/pwm/pwmc.c Mon Jun 17 16:26:43 2019 (r349143)
@@ -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");
More information about the svn-src-all
mailing list