From owner-dev-commits-src-all@freebsd.org Thu Mar 11 08:58:54 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 291BE56F64C; Thu, 11 Mar 2021 08:58:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dx2tQ0Msjz4Xg2; Thu, 11 Mar 2021 08:58:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E958F21B3C; Thu, 11 Mar 2021 08:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 12B8wrxh065869; Thu, 11 Mar 2021 08:58:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 12B8wrkZ065868; Thu, 11 Mar 2021 08:58:53 GMT (envelope-from git) Date: Thu, 11 Mar 2021 08:58:53 GMT Message-Id: <202103110858.12B8wrkZ065868@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 7d4a5de84d5e - main - share/man/man9/pwmbus.9 fix types in arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d4a5de84d5e54242edc06573522616869e0b37a Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 08:58:54 -0000 The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=7d4a5de84d5e54242edc06573522616869e0b37a commit 7d4a5de84d5e54242edc06573522616869e0b37a Author: Oskar Holmund AuthorDate: 2021-03-11 08:53:26 +0000 Commit: Emmanuel Vadot CommitDate: 2021-03-11 08:57:04 +0000 share/man/man9/pwmbus.9 fix types in arguments Fix the types of period and duty in share/man/man9/pwmbus.9 to match the one in sys/dev/pmw/pwmbus.c. Reviewed By: rpokala Differential Revision: https://reviews.freebsd.org/D29139 MFC after: 3 days --- share/man/man9/pwmbus.9 | 30 +++++++++++++++--------------- sys/dev/pwm/pwmbus_if.m | 14 +++++++------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/share/man/man9/pwmbus.9 b/share/man/man9/pwmbus.9 index a233d035dba9..858a27b9afe3 100644 --- a/share/man/man9/pwmbus.9 +++ b/share/man/man9/pwmbus.9 @@ -22,7 +22,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 21, 2019 +.Dd March 9, 2021 .Dt PWMBUS 9 .Os .Sh NAME @@ -40,19 +40,19 @@ .Cd "device pwm" .In "pwmbus_if.h" .Ft int -.Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "int channel" "uint64_t period" "uint64_t duty" +.Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "u_int channel" "u_int period" "u_int duty" .Ft int -.Fn PWMBUS_CHANNEL_COUNT "device_t bus" "int channel" "int *nchannel" +.Fn PWMBUS_CHANNEL_COUNT "device_t bus" "u_int *nchannel" .Ft int -.Fn PWMBUS_CHANNEL_ENABLE "device_t bus" "int channel" "bool enable" +.Fn PWMBUS_CHANNEL_ENABLE "device_t bus" "u_int channel" "bool enable" .Ft int -.Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "int channel" "uint64_t *period" "uint64_t *duty" +.Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "u_int channel" "u_int *period" "u_int *duty" .Ft int -.Fn PWMBUS_CHANNEL_GET_FLAGS "device_t bus" "int channel" "uint32_t *flags" +.Fn PWMBUS_CHANNEL_GET_FLAGS "device_t bus" "u_int channel" "uint32_t *flags" .Ft int -.Fn PWMBUS_CHANNEL_IS_ENABLED "device_t bus" "int channel" "bool *enabled" +.Fn PWMBUS_CHANNEL_IS_ENABLED "device_t bus" "u_int channel" "bool *enabled" .Ft int -.Fn PWMBUS_CHANNEL_SET_FLAGS "device_t bus" "int channel" "uint32_t flags" +.Fn PWMBUS_CHANNEL_SET_FLAGS "device_t bus" "u_int channel" "uint32_t flags" .Sh DESCRIPTION The PWMBUS (Pulse-Width Modulation) interface allows a device driver to register to a global bus so other devices in the kernel can use them in a @@ -76,7 +76,7 @@ Consult the documentation for the underlying PWM hardware device driver for details on channels that share resources. .Sh INTERFACE .Bl -tag -width indent -.It Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "int channel" "uint64_t period" "uint64_t duty" +.It Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "u_int channel" "u_int period" "u_int duty" Configure the period and duty (in nanoseconds) in the PWM controller on the bus for the specified channel. Returns 0 on success or @@ -85,19 +85,19 @@ if the values are not supported by the controller or .Er EBUSY if the PWMBUS controller is in use and does not support changing the value on the fly. -.It Fn PWMBUS_CHANNEL_COUNT "device_t bus" "int *nchannel" +.It Fn PWMBUS_CHANNEL_COUNT "device_t bus" "u_int *nchannel" Get the number of channels supported by the controller. -.It Fn PWMBUS_CHANNEL_ENABLE "device_t bus" "int channel" "bool enable" +.It Fn PWMBUS_CHANNEL_ENABLE "device_t bus" "u_int channel" "bool enable" Enable the PWM channel. -.It Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "int channel" "uint64_t *period" "uint64_t *duty" +.It Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "u_int channel" "u_int *period" "u_int *duty" Get the current configuration of the period and duty for the specified channel. -.It Fn PWMBUS_CHANNEL_GET_FLAGS "device_t bus" "int channel" "uint32_t *flags" +.It Fn PWMBUS_CHANNEL_GET_FLAGS "device_t bus" "u_int channel" "uint32_t *flags" Get the current flags for the channel. If the driver or controller does not support this, a default method returns a flags value of zero. -.It Fn PWMBUS_CHANNEL_IS_ENABLED "device_t bus" "int channel" "bool *enable" +.It Fn PWMBUS_CHANNEL_IS_ENABLED "device_t bus" "u_int channel" "bool *enable" Test whether the PWM channel is enabled. -.It Fn PWMBUS_CHANNEL_SET_FLAGS "device_t bus" "int channel" "uint32_t flags" +.It Fn PWMBUS_CHANNEL_SET_FLAGS "device_t bus" "u_int channel" "uint32_t flags" Set the flags of the channel (such as inverted polarity). If the driver or controller does not support this a do-nothing default method is used. diff --git a/sys/dev/pwm/pwmbus_if.m b/sys/dev/pwm/pwmbus_if.m index 4e7b49bf405c..f81e92907847 100644 --- a/sys/dev/pwm/pwmbus_if.m +++ b/sys/dev/pwm/pwmbus_if.m @@ -33,14 +33,14 @@ INTERFACE pwmbus; CODE { static int - pwm_default_set_flags(device_t dev, u_int channel, uint32_t flags) + pwm_default_set_flags(device_t bus, u_int channel, uint32_t flags) { return (EOPNOTSUPP); } static int - pwm_default_get_flags(device_t dev, u_int channel, uint32_t *flags) + pwm_default_get_flags(device_t bus, u_int channel, uint32_t *flags) { *flags = 0; @@ -55,8 +55,8 @@ CODE { METHOD int channel_config { device_t bus; u_int channel; - unsigned int period; - unsigned int duty; + u_int period; + u_int duty; }; # @@ -66,8 +66,8 @@ METHOD int channel_config { METHOD int channel_get_config { device_t bus; u_int channel; - unsigned int *period; - unsigned int *duty; + u_int *period; + u_int *duty; }; # @@ -83,7 +83,7 @@ METHOD int channel_set_flags { # Get the flags # METHOD int channel_get_flags { - device_t dev; + device_t bus; u_int channel; uint32_t *flags; } DEFAULT pwm_default_get_flags;