Date: Mon, 17 Jun 2019 16:26:44 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r349143 - head/sys/dev/pwm Message-ID: <201906171626.x5HGQiFc087909@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906171626.x5HGQiFc087909>