summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-01-16 12:42:17 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-01-16 12:42:17 -0800
commit592215a584100db752cde86f6e9fb2115212a648 (patch)
tree995b5f7ea7f69c3668a30762c3a9feae5f6cd19f /src
parent6d6c2e79221e6f362d1f47d3e52259e1d4e32315 (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>
Diffstat (limited to 'src')
-rw-r--r--src/alpscomm.c2
-rw-r--r--src/eventcomm.c4
-rw-r--r--src/synapticsstr.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/alpscomm.c b/src/alpscomm.c
index c565636..b19ea6c 100644
--- a/src/alpscomm.c
+++ b/src/alpscomm.c
@@ -130,7 +130,7 @@ ALPS_get_packet(struct CommData *comm, InputInfoPtr pInfo)
}
/*
- * ALPS abolute Mode
+ * ALPS absolute Mode
* byte 0: 1 1 1 1 1 mid0 rig0 lef0
* byte 1: 0 x6 x5 x4 x3 x2 x1 x0
* byte 2: 0 x10 x9 x8 x7 up1 fin ges
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 6862539..b24ed21 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -291,7 +291,7 @@ EventDeviceOffHook(InputInfoPtr pInfo)
}
/**
- * Test if the device on the file descriptior is recognized as touchpad
+ * Test if the device on the file descriptor is recognized as touchpad
* device. Required bits for touchpad recognition are:
* - ABS_X + ABS_Y for absolute axes
* - ABS_PRESSURE or BTN_TOUCH
@@ -418,7 +418,7 @@ event_get_abs(struct libevdev *evdev, int code,
*min = abs->minimum;
*max = abs->maximum;
- /* We dont trust a zero fuzz as it probably is just a lazy value */
+ /* We don't trust a zero fuzz as it probably is just a lazy value */
if (fuzz && abs->fuzz > 0)
*fuzz = abs->fuzz;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
diff --git a/src/synapticsstr.h b/src/synapticsstr.h
index 33524e5..7972a9c 100644
--- a/src/synapticsstr.h
+++ b/src/synapticsstr.h
@@ -296,8 +296,8 @@ struct _SynapticsPrivateRec {
int prevFingers; /* previous numFingers, for transition detection */
int avg_width; /* weighted average of previous fingerWidth values */
#ifndef NO_DRIVER_SCALING
- double horiz_coeff; /* normalization factor for x coordintes */
- double vert_coeff; /* normalization factor for y coordintes */
+ double horiz_coeff; /* normalization factor for x coordinates */
+ double vert_coeff; /* normalization factor for y coordinates */
#endif
int minx, maxx, miny, maxy; /* min/max dimensions as detected */