lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20260205015354.404524-1-gabewhigham@gmail.com>
Date: Wed,  4 Feb 2026 19:53:54 -0600
From: Gabriel Whigham <gabewhigham@...il.com>
To: linux-kernel@...r.kernel.org
Cc: dpenkler@...il.com,
	Gabriel Whigham <gabewhigham@...il.com>
Subject: [PATCH] gpib: fix typos

Fix spelling errors found by codespell.
Correct a typo in a variable name throughout the whole gpib driver.

Signed-off-by: Gabriel Whigham <gabewhigham@...il.com>
---
 drivers/gpib/TODO                            | 3 +--
 drivers/gpib/agilent_82350b/agilent_82350b.c | 2 +-
 drivers/gpib/eastwood/fluke_gpib.c           | 4 ++--
 drivers/gpib/gpio/gpib_bitbang.c             | 2 +-
 drivers/gpib/hp_82341/hp_82341.c             | 2 +-
 drivers/gpib/include/gpib_types.h            | 6 +++---
 drivers/gpib/include/nec7210.h               | 2 +-
 drivers/gpib/include/tms9914.h               | 8 ++++----
 drivers/gpib/nec7210/nec7210.c               | 8 ++++----
 9 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/drivers/gpib/TODO b/drivers/gpib/TODO
index ac07dd90b4ef..8ce844093a67 100644
--- a/drivers/gpib/TODO
+++ b/drivers/gpib/TODO
@@ -2,9 +2,8 @@ TODO:
 - checkpatch.pl fixes
   These checks should be ignored:
     CHECK:ALLOC_SIZEOF_STRUCT: Prefer kmalloc(sizeof(*board->private_data)...) over kmalloc(sizeof(struct xxx_priv)...)
-    ./gpio/gpib_bitbang.c:50: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parenthese
+    ./gpio/gpib_bitbang.c:50: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
   This warning will be addressed later:  WARNING:UNDOCUMENTED_DT_STRING: DT compatible string
 - resolve XXX notes where possible
 - fix FIXME notes
 - clean-up commented-out code
-- fix typos
diff --git a/drivers/gpib/agilent_82350b/agilent_82350b.c b/drivers/gpib/agilent_82350b/agilent_82350b.c
index 01a5bb43cd2d..fa75eb6e95f2 100644
--- a/drivers/gpib/agilent_82350b/agilent_82350b.c
+++ b/drivers/gpib/agilent_82350b/agilent_82350b.c
@@ -120,7 +120,7 @@ static int agilent_82350b_accel_read(struct gpib_board *board, u8 *buffer,
 	writeb(DIRECTION_GPIB_TO_HOST, a_priv->gpib_base + SRAM_ACCESS_CONTROL_REG);
 	if (retval < 0)
 		return retval;
-	/* read last bytes if we havn't received an END yet */
+	/* read last bytes if we haven't received an END yet */
 	if (*end == 0) {
 		size_t num_bytes;
 		/* try to make sure we holdoff after last byte read */
diff --git a/drivers/gpib/eastwood/fluke_gpib.c b/drivers/gpib/eastwood/fluke_gpib.c
index 3ae848e3f738..0699023ed243 100644
--- a/drivers/gpib/eastwood/fluke_gpib.c
+++ b/drivers/gpib/eastwood/fluke_gpib.c
@@ -286,7 +286,7 @@ static int wait_for_read(struct gpib_board *board)
  * in the case where the handshake is stuck in SGNS due to no byte being
  * available to the chip (and thus we can be confident a dma transfer will
  * result in at least one byte making it into the chip).  This matters
- * because we want to be confident before sending a "send eoi" auxilary
+ * because we want to be confident before sending a "send eoi" auxiliary
  * command that we will be able to also put the associated data byte
  * in the chip before any potential timeout.
  */
@@ -517,7 +517,7 @@ static int fluke_accel_write(struct gpib_board *board, u8 *buffer, size_t length
 		/*
 		 * wait until we are sure we will be able to write the data byte
 		 * into the chip before we send AUX_SEOI.  This prevents a timeout
-		 * scenerio where we send AUX_SEOI but then timeout without getting
+		 * scenario where we send AUX_SEOI but then timeout without getting
 		 * any bytes into the gpib chip.  This will result in the first byte
 		 * of the next write having a spurious EOI set on the first byte.
 		 */
diff --git a/drivers/gpib/gpio/gpib_bitbang.c b/drivers/gpib/gpio/gpib_bitbang.c
index 374cd61355e9..d9ba95d0843f 100644
--- a/drivers/gpib/gpio/gpib_bitbang.c
+++ b/drivers/gpib/gpio/gpib_bitbang.c
@@ -169,7 +169,7 @@ static struct gpio_desc *all_descriptors[GPIB_PINS + SN7516X_PINS];
 #define TE all_descriptors[18]
 #define ACT_LED all_descriptors[19]
 
-/* YOGA adapter uses a global enable for the buffer chips, re-using the TE pin */
+/* YOGA adapter uses a global enable for the buffer chips, reusing the TE pin */
 #define YOGA_ENABLE TE
 
 static int gpios_vector[] = {
diff --git a/drivers/gpib/hp_82341/hp_82341.c b/drivers/gpib/hp_82341/hp_82341.c
index 1a2ad0560e14..d8a2cdd7b1f3 100644
--- a/drivers/gpib/hp_82341/hp_82341.c
+++ b/drivers/gpib/hp_82341/hp_82341.c
@@ -133,7 +133,7 @@ static int hp_82341_accel_read(struct gpib_board *board, u8 *buffer, size_t leng
 	length -= i;
 	if (retval < 0)
 		return retval;
-	// read last byte if we havn't received an END yet
+	// read last byte if we haven't received an END yet
 	if (*end == 0) {
 		size_t num_bytes;
 		// try to make sure we holdoff after last byte read
diff --git a/drivers/gpib/include/gpib_types.h b/drivers/gpib/include/gpib_types.h
index 5a0978ae27e7..f45f4979615a 100644
--- a/drivers/gpib/include/gpib_types.h
+++ b/drivers/gpib/include/gpib_types.h
@@ -88,13 +88,13 @@ struct gpib_interface {
 	int (*command)(struct gpib_board *board, u8 *buffer, size_t length,
 		       size_t *bytes_written);
 	/*
-	 * Take control (assert ATN).  If 'asyncronous' is nonzero, take
-	 * control asyncronously (assert ATN immediately without waiting
+	 * Take control (assert ATN).  If 'asynchronous' is nonzero, take
+	 * control asynchronously (assert ATN immediately without waiting
 	 * for other processes to complete first).  Should not return
 	 * until board becomes controller in charge.  Returns zero no success,
 	 * nonzero on error.
 	 */
-	int (*take_control)(struct gpib_board *board, int asyncronous);
+	int (*take_control)(struct gpib_board *board, int asynchronous);
 	/*
 	 * De-assert ATN.  Returns zero on success, nonzer on error.
 	 */
diff --git a/drivers/gpib/include/nec7210.h b/drivers/gpib/include/nec7210.h
index 9835aa5ef4ff..6453dfa15639 100644
--- a/drivers/gpib/include/nec7210.h
+++ b/drivers/gpib/include/nec7210.h
@@ -84,7 +84,7 @@ int nec7210_write(struct gpib_board *board, struct nec7210_priv *priv, u8 *buffe
 		  size_t length, int send_eoi, size_t *bytes_written);
 int nec7210_command(struct gpib_board *board, struct nec7210_priv *priv, u8 *buffer,
 		    size_t length, size_t *bytes_written);
-int nec7210_take_control(struct gpib_board *board, struct nec7210_priv *priv, int syncronous);
+int nec7210_take_control(struct gpib_board *board, struct nec7210_priv *priv, int synchronous);
 int nec7210_go_to_standby(struct gpib_board *board, struct nec7210_priv *priv);
 int nec7210_request_system_control(struct gpib_board *board,
 				   struct nec7210_priv *priv, int request_control);
diff --git a/drivers/gpib/include/tms9914.h b/drivers/gpib/include/tms9914.h
index e66b75e0fda8..48e9723f45cd 100644
--- a/drivers/gpib/include/tms9914.h
+++ b/drivers/gpib/include/tms9914.h
@@ -85,13 +85,13 @@ int tms9914_write(struct gpib_board *board, struct tms9914_priv *priv, u8 *buffe
 		  size_t length, int send_eoi, size_t *bytes_written);
 int tms9914_command(struct gpib_board *board, struct tms9914_priv *priv, u8 *buffer,
 		    size_t length, size_t *bytes_written);
-int tms9914_take_control(struct gpib_board *board, struct tms9914_priv *priv, int syncronous);
+int tms9914_take_control(struct gpib_board *board, struct tms9914_priv *priv, int synchronous);
 /*
  * alternate version of tms9914_take_control which works around buggy tcs
  * implementation.
  */
 int tms9914_take_control_workaround(struct gpib_board *board, struct tms9914_priv *priv,
-				    int syncronous);
+				    int synchronous);
 int tms9914_go_to_standby(struct gpib_board *board, struct tms9914_priv *priv);
 int tms9914_request_system_control(struct gpib_board *board, struct tms9914_priv *priv,
 				   int request_control);
@@ -215,8 +215,8 @@ enum imr1_bits {
 /* ADSR   - Register bits */
 enum adsr_bits {
 	HR_ULPA = (1 << 0),   /* Store last address LSB       */
-	HR_TA = (1 << 1),     /* Talker Adressed              */
-	HR_LA = (1 << 2),     /* Listener adressed            */
+	HR_TA = (1 << 1),     /* Talker Addressed              */
+	HR_LA = (1 << 2),     /* Listener addressed            */
 	HR_TPAS = (1 << 3),   /* talker primary address state */
 	HR_LPAS = (1 << 4),   /* listener    "                */
 	HR_ATN = (1 << 5),    /* ATN active                   */
diff --git a/drivers/gpib/nec7210/nec7210.c b/drivers/gpib/nec7210/nec7210.c
index bbf39367f5e4..76cd53ea9a44 100644
--- a/drivers/gpib/nec7210/nec7210.c
+++ b/drivers/gpib/nec7210/nec7210.c
@@ -271,14 +271,14 @@ u8 nec7210_read_data_in(struct gpib_board *board, struct nec7210_priv *priv, int
 }
 EXPORT_SYMBOL(nec7210_read_data_in);
 
-int nec7210_take_control(struct gpib_board *board, struct nec7210_priv *priv, int syncronous)
+int nec7210_take_control(struct gpib_board *board, struct nec7210_priv *priv, int synchronous)
 {
 	int i;
 	const int timeout = 100;
 	int retval = 0;
 	unsigned int adsr_bits = 0;
 
-	if (syncronous)
+	if (synchronous)
 		write_byte(priv, AUX_TCS, AUXMR);
 	else
 		write_byte(priv, AUX_TCA, AUXMR);
@@ -1028,7 +1028,7 @@ void nec7210_ioport_write_byte(struct nec7210_priv *priv, u8 data, unsigned int
 {
 	if (register_num == AUXMR)
 		/*
-		 * locking makes absolutely sure noone accesses the
+		 * locking makes absolutely sure no one accesses the
 		 * AUXMR register faster than once per microsecond
 		 */
 		nec7210_locking_ioport_write_byte(priv, data, register_num);
@@ -1074,7 +1074,7 @@ void nec7210_iomem_write_byte(struct nec7210_priv *priv, u8 data, unsigned int r
 {
 	if (register_num == AUXMR)
 		/*
-		 * locking makes absolutely sure noone accesses the
+		 * locking makes absolutely sure no one accesses the
 		 * AUXMR register faster than once per microsecond
 		 */
 		nec7210_locking_iomem_write_byte(priv, data, register_num);
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ