summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-01-16 12:36:16 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-01-16 12:36:16 -0800
commit84bca281c4875c7446688fc8ffe76da4c24c7724 (patch)
tree000c3ffa311ff18a6e428b72f576c2a2a336c116
parent9255be3c68207929266e920be8461b7669ae4efd (diff)
Fix spelling/wording issues
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--README2
-rw-r--r--src/bsd_mouse.c8
-rw-r--r--src/mouse.c14
-rw-r--r--src/pnp.c6
4 files changed, 15 insertions, 15 deletions
diff --git a/README b/README
index 3c1c175..02a0478 100644
--- a/README
+++ b/README
@@ -248,7 +248,7 @@
console driver is supported. You need to run binaries compiled on
NetBSD 1.4 to have support for it though. Use "/dev/wsmouse0" for the
device. Refer to the wsmouse(4) manual page for kernel configuration
- informations.
+ information.
This driver also provides support for USB mice. See the ums(4) manual
page for details.
diff --git a/src/bsd_mouse.c b/src/bsd_mouse.c
index dc628d4..1e0aa6a 100644
--- a/src/bsd_mouse.c
+++ b/src/bsd_mouse.c
@@ -61,7 +61,7 @@
#define HID_USAGE2(p,u) (((p) << 16) | u)
-/* The UMS mices have middle button as number 3 */
+/* The UMS mice have middle button as number 3 */
#define UMS_BUT(i) ((i) == 0 ? 2 : (i) == 1 ? 0 : (i) == 2 ? 1 : (i))
#endif /* USBMOUSE_SUPPORT */
@@ -83,7 +83,7 @@ static const char *mouseDevs[] = {
NULL
};
#elif (defined(__OpenBSD__) || defined(__NetBSD__)) && defined(WSCONS_SUPPORT)
-/* Only wsmouse mices are autoconfigured for now on OpenBSD */
+/* Only wsmouse mice are autoconfigured for now on OpenBSD */
#define DEFAULT_WSMOUSE_DEV "/dev/wsmouse"
#define DEFAULT_WSMOUSE0_DEV "/dev/wsmouse0"
@@ -232,7 +232,7 @@ SetSysMouseRes(InputInfoPtr pInfo, const char *protocol, int rate, int res)
(protocol && xf86NameCmp(protocol, "SysMouse") == 0)) {
/*
* As the FreeBSD sysmouse driver defaults to protocol level 0
- * everytime it is opened we enforce protocol level 1 again at
+ * every time it is opened we enforce protocol level 1 again at
* this point.
*/
mode.level = 1;
@@ -670,7 +670,7 @@ usbPreInit(InputInfoPtr pInfo, const char *protocol, int flags)
return FALSE;
}
}
- /* Get USB informations */
+ /* Get USB information */
reportDesc = hid_get_report_desc(pInfo->fd);
/* Get packet size & iid */
#ifdef USB_NEW_HID
diff --git a/src/mouse.c b/src/mouse.c
index 40d97a9..8bd6547 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -38,7 +38,7 @@
*/
/*
- * [PME-02/08/11] Added suport for drag lock buttons
+ * [PME-02/08/11] Added support for drag lock buttons
* for use with 4 button trackballs for convenience
* and to help limited dexterity persons
*/
@@ -1195,7 +1195,7 @@ MouseReadInput(InputInfoPtr pInfo)
/*
* Set blocking to -1 on the first call because we know there is data to
* read. Xisb automatically clears it after one successful read so that
- * succeeding reads are preceeded by a select with a 0 timeout to prevent
+ * succeeding reads are preceded by a select with a 0 timeout to prevent
* read from blocking indefinitely.
*/
XisbBlockDuration(pMse->buffer, -1);
@@ -1255,11 +1255,11 @@ MouseReadInput(InputInfoPtr pInfo)
*/
/*
* [KAZU-030897]
- * Receive the fourth byte only when preceeding three bytes
+ * Receive the fourth byte only when preceding three bytes
* have been detected (pBufP >= pMse->protoPara[4]). In the
* previous versions, the test was pBufP == 0; we may have
* mistakingly received a byte even if we didn't see anything
- * preceeding the byte.
+ * preceding the byte.
*/
#ifdef EXTMOUSEDEBUG
LogMessageVerbSigSafe(X_INFO, -1, "mouse 4th byte %x\n",u);
@@ -1908,7 +1908,7 @@ FlushButtons(MouseDevPtr pMse)
* action = 0: nothing
* action < 0: ButtonRelease
*
- * The comment preceeding each section is the current emulation state.
+ * The comment preceding each section is the current emulation state.
* The comments to the right are of the form
* <button state> (<events>) -> <new emulation state>
* which should be read as
@@ -2597,7 +2597,7 @@ SetupMouse(InputInfoPtr pInfo)
if (pMse->protocolID == PROT_AUTO) {
/*
* We come here when user specifies protocol "auto" in
- * the configuration file or thru the xf86misc extensions.
+ * the configuration file or through the xf86misc extensions.
* So we initialize autoprobing here.
* Probe for PnP/OS mouse first. If unsuccessful
* try to guess protocol from incoming data.
@@ -3243,7 +3243,7 @@ autoOSProtocol(InputInfoPtr pInfo, int *protoPara)
/* Check for a builtin OS-specific protocol. */
if (osInfo->CheckProtocol && osInfo->CheckProtocol(name)) {
/* We can only come here if the protocol has been
- * changed to auto thru the xf86misc extension
+ * changed to auto through the xf86misc extension
* and we have detected an OS specific builtin
* protocol. Currently we cannot handle this */
name = NULL;
diff --git a/src/pnp.c b/src/pnp.c
index e5c4bc7..baa106b 100644
--- a/src/pnp.c
+++ b/src/pnp.c
@@ -411,7 +411,7 @@ pnpparse(InputInfoPtr pInfo, pnpid_t *id, char *buf, int len)
xf86MsgVerb(X_INFO, 2, "%s: PnP rev %d.%02d\n", pInfo->name,
id->revision / 100, id->revision % 100);
- /* EISA vender and product ID */
+ /* EISA vendor and product ID */
id->eisaid = &buf[3];
id->neisaid = 7;
@@ -601,7 +601,7 @@ ps2SendPacket(InputInfoPtr pInfo, unsigned char *bytes, int len)
return FALSE;
}
#ifdef DEBUG
- xf86ErrorF("Recieved: 0x%x\n",c);
+ xf86ErrorF("Received: 0x%x\n",c);
#endif
if (c == 0xFA) /* ACK */
break;
@@ -613,7 +613,7 @@ ps2SendPacket(InputInfoPtr pInfo, unsigned char *bytes, int len)
if (c == 0xFC) /* error */
return FALSE;
- /* Some mice accidently enter wrap mode during init */
+ /* Some mice accidentally enter wrap mode during init */
if (c == *(bytes + i) /* wrap mode */
&& (*(bytes + i) != 0xEC)) /* avoid recursion */
ps2DisableWrapMode(pInfo);