gpib: fix typos
PATCH 1/1 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 <[email protected]>
--- 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(-)
drivers/gpib/TODO +1 -2
@@ -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
drivers/gpib/agilent_82350b/agilent_82350b.c +1 -1
@@ -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 */
drivers/gpib/eastwood/fluke_gpib.c +2 -2
@@ -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. */
drivers/gpib/gpio/gpib_bitbang.c +1 -1
@@ -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 TEstatic int gpios_vector[] = {
drivers/gpib/hp_82341/hp_82341.c +1 -1
@@ -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
drivers/gpib/include/gpib_types.h +3 -3
@@ -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. */
drivers/gpib/include/nec7210.h +1 -1
@@ -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);
drivers/gpib/include/tms9914.h +4 -4
@@ -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 */
drivers/gpib/nec7210/nec7210.c +4 -4
@@ -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);
Signature · 1 line
2.43.0