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");
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to