From nobody Sun Sep 04 10:50:00 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ML7hT07Pmz4bJGY; Sun, 4 Sep 2022 10:50:01 +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 4ML7hS5wHfz47cx; Sun, 4 Sep 2022 10:50:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662288600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HSdtYON0dPt9XgteO2yiMBiIn+VAwAM9+iPd5nUkx3I=; b=p2xYHs3UDVti+iOnNbt/D1k6gp4179g9NA6msfwDuKhfnc/rNrFSRu/1WUj1cJTYxfJuJo E+WOAIZKifZ86UoeFApIve02AQ8nsPhwBIWh1Nc9aKTuBgcxZN1FsN2k2sIod+M11n+LJa HjfZT80lc55zyBktcl+KsfUsU2l/0GNgV/oUD8JN3tc0FdJkvUdTlx/HtQrX4ESOKbh5YK IYVn1U8jUAPfoSvhZ/ekHMvNpLan3ThalfuiQpbD9i0Z0dE07ZIT5WbuKIFhHnBU17NXtA 2RknQUybflLMxMO1M2mP4QemUL8et65UXqiYE4Ho/ZZtiAyyqJN7Wt1DKZtEuA== 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 4ML7hS4YYmzSYc; Sun, 4 Sep 2022 10:50:00 +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 284Ao0oY096873; Sun, 4 Sep 2022 10:50:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 284Ao0cn096852; Sun, 4 Sep 2022 10:50:00 GMT (envelope-from git) Date: Sun, 4 Sep 2022 10:50:00 GMT Message-Id: <202209041050.284Ao0cn096852@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gordon Bergling Subject: git: 88cdf609e411 - main - bhnd(4): Correct some typos in source code comments List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 88cdf609e411a1ba398e9e3e93ad82345ad8b516 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662288600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HSdtYON0dPt9XgteO2yiMBiIn+VAwAM9+iPd5nUkx3I=; b=Fec6CGtv+bQzIZZd2Ssw41fdGmbqdogoCURnSHsdWWr6mRGcYideAoy1wCuT7NPxyriq77 zkX5BvXwQfgDyb0wJFE0RfuLoKJEClOwCwVCyB4Q47xlilUqoMYwsrXkU30lk1goN2x7uC Bpg1eoVMkaj7Df6XadIqgcNcrMFAOg4/qprBDXJ6XZFoURZktEclF5JqO2wtI+41W/MUkU a8sJekKwbhoJASHyLJRkRZYPT+pT8MK8fRvd+WSSBmm3B1qbe6pUqVHB8oYzfd50EiTl3+ IAXLzPJgZRn3mWSeR6zTx2RWZmqJHL8idfN4QVwoNwpfNnEYWMMphnwU0ntrnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662288600; a=rsa-sha256; cv=none; b=hYdr0Bu94Hbj8KHu4+BBnkXCiuu9Jolju9xY5TSwm131hX3r0D1QUhU5KbTGNSfLnpsCxP VwZLSkA0QJ+/V3rzKF36gQg7GlFo4uFLA7bJ01YqjpVGKaOcP+xgtwwdu4Wq+4nPy9TgL8 6A9ewcc0PLgU31JCnJRxhD24GRVMY90SIYHryW+abicw1Hx4NLujuqljRBqOwMIqjf5dCP 79WZsOcUuQdjlOQxDHC1XbEPldvOrdjwpn5uHQ4wRi/fMQGoj0VjZEXeSOI4k+NeRJvT8E uQZTjSDWP9iof9VBMemiV1El1ikcpsX+JVH3XRe52McWzZCd7buJzmylcIAq4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=88cdf609e411a1ba398e9e3e93ad82345ad8b516 commit 88cdf609e411a1ba398e9e3e93ad82345ad8b516 Author: Gordon Bergling AuthorDate: 2022-09-04 10:49:42 +0000 Commit: Gordon Bergling CommitDate: 2022-09-04 10:49:42 +0000 bhnd(4): Correct some typos in source code comments - s/occured/occurred/ While here, fix some whitespace issues. MFC after: 3 days --- sys/dev/bhnd/bcma/bcma_erom.c | 4 ++-- sys/dev/bhnd/bhnd.h | 2 +- sys/dev/bhnd/bhnd_bus_if.m | 2 +- sys/dev/bhnd/bhnd_erom.c | 4 ++-- sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c | 2 +- sys/dev/bhnd/nvram/bhnd_nvram_io.c | 22 +++++++++++----------- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/sys/dev/bhnd/bcma/bcma_erom.c b/sys/dev/bhnd/bcma/bcma_erom.c index 14a33d5a3ae9..14abc49f147a 100644 --- a/sys/dev/bhnd/bcma/bcma_erom.c +++ b/sys/dev/bhnd/bcma/bcma_erom.c @@ -720,13 +720,13 @@ bcma_erom_seek_matching_core(struct bcma_erom *sc, return (0); } - /* Not found, or a parse error occured */ + /* Not found, or a parse error occurred */ return (error); } /** * Read the next core descriptor from the EROM table. - * + * * @param erom EROM read state. * @param[out] core On success, will be populated with the parsed core * descriptor data. diff --git a/sys/dev/bhnd/bhnd.h b/sys/dev/bhnd/bhnd.h index 8e883e408139..ea4aaf3d2cef 100644 --- a/sys/dev/bhnd/bhnd.h +++ b/sys/dev/bhnd/bhnd.h @@ -819,7 +819,7 @@ bhnd_read_iost(device_t dev, uint16_t *iost) * @param dev The device to query. * * @retval true If @p dev is held in RESET or not clocked (BHND_IOCTL_CLK_EN), - * or an error occured determining @p dev's hardware state. + * or an error occurred determining @p dev's hardware state. * @retval false If @p dev is clocked and is not held in RESET. */ static inline bool diff --git a/sys/dev/bhnd/bhnd_bus_if.m b/sys/dev/bhnd/bhnd_bus_if.m index 23fa847d9bd9..379898f9af26 100644 --- a/sys/dev/bhnd/bhnd_bus_if.m +++ b/sys/dev/bhnd/bhnd_bus_if.m @@ -616,7 +616,7 @@ METHOD int read_iost { * @param child The device to query. * * @retval true If @p child is held in RESET or not clocked (BHND_IOCTL_CLK_EN), - * or an error occured determining @p child's hardware state. + * or an error occurred determining @p child's hardware state. * @retval false If @p child is clocked and is not held in RESET. */ METHOD bool is_hw_suspended { diff --git a/sys/dev/bhnd/bhnd_erom.c b/sys/dev/bhnd/bhnd_erom.c index 44d741276eaf..d45e3efe88ac 100644 --- a/sys/dev/bhnd/bhnd_erom.c +++ b/sys/dev/bhnd/bhnd_erom.c @@ -159,7 +159,7 @@ bhnd_erom_probe_driver_classes(devclass_t bus_devclass, /** * Allocate and return a new device enumeration table parser. - * + * * @param cls The parser class for which an instance will be * allocated. * @param eio The bus I/O callbacks to use when reading the device @@ -167,7 +167,7 @@ bhnd_erom_probe_driver_classes(devclass_t bus_devclass, * @param cid The device's chip identifier. * * @retval non-NULL success - * @retval NULL if an error occured allocating or initializing the + * @retval NULL if an error occurred allocating or initializing the * EROM parser. */ bhnd_erom_t * diff --git a/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c b/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c index e09da7000b29..c405f53a0a3e 100644 --- a/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c +++ b/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c @@ -359,7 +359,7 @@ bhnd_nvram_sprom_getvar_direct(struct bhnd_nvram_io *io, const char *name, if (error == ENOENT) return (ENOENT); - /* Some other parse error occured */ + /* Some other parse error occurred */ return (error); } diff --git a/sys/dev/bhnd/nvram/bhnd_nvram_io.c b/sys/dev/bhnd/nvram/bhnd_nvram_io.c index 5af048906bfb..d04fe75adbcc 100644 --- a/sys/dev/bhnd/nvram/bhnd_nvram_io.c +++ b/sys/dev/bhnd/nvram/bhnd_nvram_io.c @@ -41,9 +41,9 @@ __FBSDID("$FreeBSD$"); #include "bhnd_nvram_io.h" #include "bhnd_nvram_iovar.h" -/** +/** * Read exactly @p nbytes from @p io at @p offset. - * + * * @param io NVRAM I/O context. * @param offset The offset within @p io at which to perform the read. * @param[out] buffer Output buffer to which @p nbytes from @p io will be @@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$"); * @param nbytes The maximum number of bytes to be read from @p io. * * @retval 0 success - * @retval EIO if an input error occured reading @p io. + * @retval EIO if an input error occurred reading @p io. * @retval ENXIO if the request for @p offset or @p nbytes exceeds the size * of @p io. * @retval EFAULT if @p io requires I/O request alignment and @p offset is @@ -69,11 +69,11 @@ bhnd_nvram_io_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, /** * Attempt to fetch a pointer to @p io's internal read buffer, if * supported by @p io. - * + * * The returned pointer is only gauranteed to be valid until the next I/O * operation performed on @p io; concrete implementations of bhnd_nvram_io * may provide stronger gaurantees. - * + * * @param io NVRAM I/O context. * @param offset The offset within @p io for which to return a buffer pointer. * @param[out] ptr On success, will be initialized with a pointer to @p io's @@ -82,10 +82,10 @@ bhnd_nvram_io_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, * @param[out] navail The actual number of readable bytes, which may be greater * than @p nbytes. If this value is not required, a NULL pointer may be * provided. - * + * * @retval 0 success - * @retval EIO if an input error occured reading @p io. - * @retval ENODEV if @p io does not support direct access to its backing read + * @retval EIO if an input error occurred reading @p io. + * @retval ENODEV if @p io does not support direct access to its backing read * buffer. * @retval ENXIO if the request exceeds the size of @p io. * @retval EFAULT if @p io requires I/O request alignment and @p offset or @@ -98,9 +98,9 @@ bhnd_nvram_io_read_ptr(struct bhnd_nvram_io *io, size_t offset, return (io->iops->read_ptr(io, offset, ptr, nbytes, navail)); } -/** +/** * Write @p nbytes to @p io at @p offset. - * + * * @param io NVRAM I/O context. * @param offset The offset within @p io at which to perform the write. * @param buffer Data to be written to @p io. @@ -193,7 +193,7 @@ bhnd_nvram_io_setsize(struct bhnd_nvram_io *io, size_t size) /** * Free a previously allocated I/O context, releasing all associated * resources. - * + * * @param io The I/O context to be freed. */ void