summaryrefslogtreecommitdiff
path: root/hw/xfree86/common
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2020-07-05 13:07:33 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2020-07-05 13:07:33 -0700
commit23e83724df4809fd7857cc609c33ce7e8d3021a4 (patch)
treec3018d5ce5c474883b9a31aca33962d73a540bd8 /hw/xfree86/common
parentb0413b6e99c6b5fbc04229ce64ddf1f41b08e63e (diff)
Fix spelling/wording issues
Most (but not all) of these were found by using codespell --builtin clear,rare,usage,informal,code,names but not everything reported by that was fixed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'hw/xfree86/common')
-rw-r--r--hw/xfree86/common/.gitignore2
-rw-r--r--hw/xfree86/common/xf86Bus.c4
-rw-r--r--hw/xfree86/common/xf86Cursor.c4
-rw-r--r--hw/xfree86/common/xf86Events.c8
-rw-r--r--hw/xfree86/common/xf86Helper.c4
-rw-r--r--hw/xfree86/common/xf86Mode.c4
-rw-r--r--hw/xfree86/common/xf86Module.h2
-rw-r--r--hw/xfree86/common/xf86Xinput.c2
-rw-r--r--hw/xfree86/common/xf86fbman.c4
-rw-r--r--hw/xfree86/common/xf86pciBus.c2
-rw-r--r--hw/xfree86/common/xf86platformBus.c2
-rw-r--r--hw/xfree86/common/xf86xv.c2
-rw-r--r--hw/xfree86/common/xisb.c2
13 files changed, 21 insertions, 21 deletions
diff --git a/hw/xfree86/common/.gitignore b/hw/xfree86/common/.gitignore
index 81e8416d2..817dfda8b 100644
--- a/hw/xfree86/common/.gitignore
+++ b/hw/xfree86/common/.gitignore
@@ -1,3 +1,3 @@
-# Add & Override for this directory and it's subdirectories
+# Add & Override for this directory and its subdirectories
xf86Build.h
xf86DefModeSet.c
diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c
index 367feae46..0263e6907 100644
--- a/hw/xfree86/common/xf86Bus.c
+++ b/hw/xfree86/common/xf86Bus.c
@@ -131,7 +131,7 @@ xf86BusConfig(void)
/*
* 2. If no Screens were found, call each drivers probe function with
* ignorePrimary = TRUE, to ensure that we do actually get a
- * Screen if there is atleast one supported video card.
+ * Screen if there is at least one supported video card.
*/
if (xf86NumScreens == 0) {
xf86ProbeIgnorePrimary = TRUE;
@@ -403,7 +403,7 @@ xf86RemoveEntityFromScreen(ScrnInfoPtr pScrn, int entityIndex)
/*
* xf86ClearEntityListForScreen() - called when a screen is deleted
- * to mark it's entities unused. Called by xf86DeleteScreen().
+ * to mark its entities unused. Called by xf86DeleteScreen().
*/
void
xf86ClearEntityListForScreen(ScrnInfoPtr pScrn)
diff --git a/hw/xfree86/common/xf86Cursor.c b/hw/xfree86/common/xf86Cursor.c
index de054fbc9..8bb68a56f 100644
--- a/hw/xfree86/common/xf86Cursor.c
+++ b/hw/xfree86/common/xf86Cursor.c
@@ -137,8 +137,8 @@ xf86PointerMoved(ScrnInfoPtr pScr, int x, int y)
Bool frameChanged = FALSE;
/*
- * check wether (x,y) belongs to the visual part of the screen
- * if not, change the base of the displayed frame accoring
+ * check whether (x,y) belongs to the visual part of the screen
+ * if not, change the base of the displayed frame occurring
*/
if (pScr->frameX0 > x) {
pScr->frameX0 = x;
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 4b939000c..05fa2bb90 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -280,12 +280,12 @@ xf86ReleaseKeys(DeviceIntPtr pDev)
/*
* Hmm... here is the biggest hack of every time !
* It may be possible that a switch-vt procedure has finished BEFORE
- * you released all keys neccessary to do this. That peculiar behavior
+ * you released all keys necessary to do this. That peculiar behavior
* can fool the X-server pretty much, cause it assumes that some keys
- * were not released. TWM may stuck alsmost completly....
+ * were not released. TWM may stuck almost completely....
* OK, what we are doing here is after returning from the vt-switch
- * exeplicitely unrelease all keyboard keys before the input-devices
- * are reenabled.
+ * explicitly unrelease all keyboard keys before the input-devices
+ * are re-enabled.
*/
for (i = keyc->xkbInfo->desc->min_key_code;
diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
index 3b4811053..6bdbf7c15 100644
--- a/hw/xfree86/common/xf86Helper.c
+++ b/hw/xfree86/common/xf86Helper.c
@@ -811,8 +811,8 @@ xf86SetGamma(ScrnInfoPtr scrp, Gamma gamma)
scrp->gamma.red = SET_GAMMA(DDC->features.gamma);
scrp->gamma.green = SET_GAMMA(DDC->features.gamma);
scrp->gamma.blue = SET_GAMMA(DDC->features.gamma);
- /* EDID structure version 2 gives optional seperate red, green & blue gamma values
- * in bytes 0x57-0x59 */
+ /* EDID structure version 2 gives optional separate red, green & blue
+ * gamma values in bytes 0x57-0x59 */
#endif
}
else if (TEST_GAMMA(gamma)) {
diff --git a/hw/xfree86/common/xf86Mode.c b/hw/xfree86/common/xf86Mode.c
index 484cde7ab..eb0885571 100644
--- a/hw/xfree86/common/xf86Mode.c
+++ b/hw/xfree86/common/xf86Mode.c
@@ -1186,7 +1186,7 @@ LCM(unsigned int x, unsigned int y)
/*
* Given various screen attributes, determine the minimum scanline width such
- * that each scanline is server and DDX padded and any pixels with imbedded
+ * that each scanline is server and DDX padded and any pixels with embedded
* bank boundaries are off-screen. This function returns -1 if such a width
* cannot exist.
*/
@@ -1223,7 +1223,7 @@ scanLineWidth(unsigned int xsize, /* pixels */
/*
* Scanlines will be server-pad aligned at this point. They will also be
- * a multiple of nWidthUnit bits long. Ensure that pixels with imbedded
+ * a multiple of nWidthUnit bits long. Ensure that pixels with embedded
* bank boundaries are off-screen.
*
* It seems reasonable to limit total frame buffer size to 1/16 of the
diff --git a/hw/xfree86/common/xf86Module.h b/hw/xfree86/common/xf86Module.h
index c590ffec4..a40ecff0f 100644
--- a/hw/xfree86/common/xf86Module.h
+++ b/hw/xfree86/common/xf86Module.h
@@ -92,7 +92,7 @@ typedef enum {
LDR_NOENT, /* Module file does not exist */
LDR_NOLOAD, /* type specific loader failed */
LDR_ONCEONLY, /* Module should only be loaded once (not an error) */
- LDR_MISMATCH, /* the module didn't match the spec'd requirments */
+ LDR_MISMATCH, /* the module didn't match the spec'd requirements */
LDR_BADUSAGE, /* LoadModule is called with bad arguments */
LDR_INVALID, /* The module doesn't have a valid ModuleData object */
LDR_BADOS, /* The module doesn't support the OS */
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 3cc90c4e9..a2b2de392 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -1476,7 +1476,7 @@ xf86FirstLocalDevice(void)
*
* This function is the same for X or Y coordinates.
* You may have to reverse the high and low values to compensate for
- * different orgins on the touch screen vs X.
+ * different origins on the touch screen vs X.
*
* e.g. to scale from device coordinates into screen coordinates, call
* xf86ScaleAxis(x, 0, screen_width, dev_min, dev_max);
diff --git a/hw/xfree86/common/xf86fbman.c b/hw/xfree86/common/xf86fbman.c
index 91ddedc29..25779e510 100644
--- a/hw/xfree86/common/xf86fbman.c
+++ b/hw/xfree86/common/xf86fbman.c
@@ -382,7 +382,7 @@ AllocateArea(FBManagerPtr offman,
break;
}
- /* try to boot a removeable one out if we are not expendable ourselves */
+ /* try to boot a removable one out if we are not expendable ourselves */
if (!area && !removeCB) {
link = offman->UsedAreas;
@@ -1056,7 +1056,7 @@ localResizeOffscreenLinear(FBLinearPtr resize, int length)
return FALSE;
}
- /* This could actually be alot smarter and try to move allocations
+ /* This could actually be a lot smarter and try to move allocations
from XY to linear when available. For now if it was XY, we keep
it XY */
diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index 6575c4ec8..aeeed8be6 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -633,7 +633,7 @@ struct Inst {
* \param devList List of Device sections parsed from the config file.
* \param numDevs Number of entries in \c devList.
* \param drvp Pointer the driver's control structure.
- * \param foundEntities Returned list of entity indicies associated with the
+ * \param foundEntities Returned list of entity indices associated with the
* driver.
*
* \returns
diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
index f87760b63..ee2f3f86a 100644
--- a/hw/xfree86/common/xf86platformBus.c
+++ b/hw/xfree86/common/xf86platformBus.c
@@ -534,7 +534,7 @@ xf86platformProbeDev(DriverPtr drvp)
const unsigned numDevs = xf86MatchDevice(drvp->driverName, &devList);
int i, j;
- /* find the main device or any device specificed in xorg.conf */
+ /* find the main device or any device specified in xorg.conf */
for (i = 0; i < numDevs; i++) {
const char *devpath;
diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c
index d613d712c..8a8c5939d 100644
--- a/hw/xfree86/common/xf86xv.c
+++ b/hw/xfree86/common/xf86xv.c
@@ -544,7 +544,7 @@ xf86XVInitAdaptors(ScreenPtr pScreen, XF86VideoAdaptorPtr * infoPtr, int number)
client clip from the GC when the video is initialized. We then
use xf86XVUpdateCompositeClip to calculate the new composite clip
when we need it. This is different from what DEC did. They saved
- the GC and used it's clip list when they needed to reclip the window,
+ the GC and used its clip list when they needed to reclip the window,
even if the client clip was different from the one the video was
initialized with. If the original GC was destroyed, they had to stop
the video. I like the new method better (MArk).
diff --git a/hw/xfree86/common/xisb.c b/hw/xfree86/common/xisb.c
index 3568a578c..f35a6825a 100644
--- a/hw/xfree86/common/xisb.c
+++ b/hw/xfree86/common/xisb.c
@@ -155,7 +155,7 @@ XisbTrace(XISBuffer * b, int trace)
* will use check to select for data and prevent a block.
* It is the caller's responsibility to set the block_duration to -1 if it
* knows that there is data to read (because the main select loop triggered
- * the read) and want's to avoid the unnecessary overhead of the select call
+ * the read) and wants to avoid the unnecessary overhead of the select call
*
* a zero or positive block duration will cause the select to block for the
* give duration in usecs.