staging: gpib: u8 and u64 over uint8_t and uint64_t
v2 cover staging: gpib: u8 and u64 over uint8_t and uint64_t
Preferring u8 over uint8_t and preferring u64 over uint64_t to adhere to Linux code style.
v2 as some of the patches in v1 did not apply cleanly. Sending the remaining ones.
* Patch 1 - Patch 11
Reported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
* Patch 12:
Reported by checkpatch.pl.
CHECK: Prefer kernel type 'u64' over 'uint64_t'
* Patch 13 - Patch 14:
Reported by checkpatch.pl
CHECK: Prefer kernel type 'u8' over 'uint8_t
Michael Rubin (14):
staging: gpib: gpib_ioctl: u8 over uint8_t
staging: gpib: gpib_user: u8 over uint8_t
staging: gpib: agilent_82350b: u8 over uint8_t
staging: gpib: agilent_82357a: u8 over uint8_t
staging: gpib: cec: u8 over uint8_t
staging: gpib: gpib_os: u8 over uint8_t
staging: gpib: gpib_bitbang: u8 over uint8_t
staging: gpib: hp_82335: u8 over uint8_t
staging: gpib: hp_82341: u8 over uint8_t
staging: gpib: ni_usb: u8 over uint8_t
staging: gpib: pc2: u8 over uint8_t
staging: gpib: gpib_ioctl: u64 over uint64_t
staging: gpib: lpvo_usb_gpib: u8 over uint8_t
staging: gpib: tnt4882: u8 over uint8_t
.../gpib/agilent_82350b/agilent_82350b.c | 22 +++++++-------- .../gpib/agilent_82357a/agilent_82357a.c | 20 ++++++------- drivers/staging/gpib/cec/cec_gpib.c | 16 +++++------ drivers/staging/gpib/common/gpib_os.c | 8 +++--- drivers/staging/gpib/gpio/gpib_bitbang.c | 20 ++++++------- drivers/staging/gpib/hp_82335/hp82335.c | 20 ++++++------- drivers/staging/gpib/hp_82341/hp_82341.c | 26 ++++++++--------- .../gpib/lpvo_usb_gpib/lpvo_usb_gpib.c | 8 +++--- drivers/staging/gpib/ni_usb/ni_usb_gpib.c | 16 +++++------ drivers/staging/gpib/pc2/pc2_gpib.c | 16 +++++------ drivers/staging/gpib/tnt4882/tnt4882_gpib.c | 28 +++++++++---------- drivers/staging/gpib/uapi/gpib_ioctl.h | 16 +++++------ drivers/staging/gpib/uapi/gpib_user.h | 26 ++++++++--------- 13 files changed, 121 insertions(+), 121 deletions(-)
Signature · 1 line
2.43.0
PATCH v2 1/14 staging: gpib: gpib_ioctl: u8 over uint8_t
Reported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/uapi/gpib_ioctl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/gpib/uapi/gpib_ioctl.h +5 -5
@@ -39,7 +39,7 @@ struct gpib_close_dev_ioctl {struct gpib_serial_poll_ioctl {unsigned int pad;int sad; -uint8_t status_byte; +__u8 status_byte; };struct gpib_eos_ioctl {
@@ -87,7 +87,7 @@ struct gpib_select_pci_ioctl { };struct gpib_ppoll_config_ioctl { -uint8_t config; +__u8 config;unsigned set_ist :1 ;unsigned clear_ist :1 ; };
@@ -109,7 +109,7 @@ struct gpib_select_device_path_ioctl {// update status byte and request service struct gpib_request_service2 { -uint8_t status_byte; +__u8 status_byte;int new_reason_for_service; };
@@ -121,7 +121,7 @@ enum gpib_ioctl { IBOPENDEV = _IOWR(GPIB_CODE, 3, struct gpib_open_dev_ioctl), IBCLOSEDEV = _IOW(GPIB_CODE, 4, struct gpib_close_dev_ioctl), IBWAIT = _IOWR(GPIB_CODE, 5, struct gpib_wait_ioctl), -IBRPP =_IOWR (GPIB_CODE ,6 , uint8_t), +IBRPP =_IOWR (GPIB_CODE ,6 , __u8), IBSIC = _IOW(GPIB_CODE, 9, unsigned int), IBSRE = _IOW(GPIB_CODE, 10, int),
@@ -133,7 +133,7 @@ enum gpib_ioctl { IBTMO = _IOW(GPIB_CODE, 17, unsigned int), IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl), IBEOS = _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl), -IBRSV =_IOW (GPIB_CODE ,20 , uint8_t), +IBRSV =_IOW (GPIB_CODE ,20 , __u8),CFCBASE =_IOW (GPIB_CODE ,21 , uint64_t), CFCIRQ = _IOW(GPIB_CODE, 22, unsigned int), CFCDMA = _IOW(GPIB_CODE, 23, unsigned int),
Signature · 1 line
2.43.0
PATCH v2 2/14 staging: gpib: gpib_user: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/uapi/gpib_user.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/staging/gpib/uapi/gpib_user.h +13 -13
@@ -166,24 +166,24 @@ static inline unsigned int gpib_address_restrict(unsigned int addr)return addr; } -static inline uint8_t MLA (unsigned int addr) +static inline __u8 MLA (unsigned int addr) {return gpib_address_restrict (addr) |LAD ; } -static inline uint8_t MTA (unsigned int addr) +static inline __u8 MTA (unsigned int addr) {return gpib_address_restrict (addr) |TAD ; } -static inline uint8_t MSA (unsigned int addr) +static inline __u8 MSA (unsigned int addr) {return gpib_address_restrict (addr) |SAD ; } -static inline uint8_t PPE_byte (unsigned int dio_line,int sense) +static inline __u8 PPE_byte (unsigned int dio_line,int sense) { -uint8_t cmd; +__u8 cmd; cmd =PPE ;if (sense)
@@ -192,7 +192,7 @@ static inline uint8_t PPE_byte(unsigned int dio_line, int sense)return cmd; } -static inline uint8_t CFGn (unsigned int meters) +static inline __u8 CFGn (unsigned int meters) {return 0x6 | (meters &0xf ); }
@@ -202,37 +202,37 @@ enum { gpib_command_mask = 0x7f, }; -static inline int is_PPE (uint8_t command) +static inline int is_PPE (__u8 command) {return (command &0x70 ) ==0x60 ; } -static inline int is_PPD (uint8_t command) +static inline int is_PPD (__u8 command) {return (command &0x70 ) ==0x70 ; } -static inline int in_addressed_command_group (uint8_t command) +static inline int in_addressed_command_group (__u8 command) {return (command &0x70 ) ==0x0 ; } -static inline int in_universal_command_group (uint8_t command) +static inline int in_universal_command_group (__u8 command) {return (command &0x70 ) ==0x10 ; } -static inline int in_listen_address_group (uint8_t command) +static inline int in_listen_address_group (__u8 command) {return (command &0x60 ) ==0x20 ; } -static inline int in_talk_address_group (uint8_t command) +static inline int in_talk_address_group (__u8 command) {return (command &0x60 ) ==0x40 ; } -static inline int in_primary_command_group (uint8_t command) +static inline int in_primary_command_group (__u8 command) {return in_addressed_command_group (command) || in_universal_command_group(command) ||
Signature · 1 line
2.43.0
PATCH v2 3/14 staging: gpib: agilent_82350b: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- .../gpib/agilent_82350b/agilent_82350b.c | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-)
drivers/staging/gpib/agilent_82350b/agilent_82350b.c +11 -11
@@ -27,10 +27,10 @@ MODULE_DESCRIPTION("GPIB driver for Agilent 82350b");static int read_transfer_counter (struct agilent_82350b_priv *a_priv);static unsigned short read_and_clear_event_status (struct gpib_board *board);static void set_transfer_counter (struct agilent_82350b_priv *a_priv,int count); -static int agilent_82350b_write (struct gpib_board *board,uint8_t *buffer, +static int agilent_82350b_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written); -static int agilent_82350b_accel_read (struct gpib_board *board,uint8_t *buffer, +static int agilent_82350b_accel_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {
@@ -145,7 +145,7 @@ static int translate_wait_return_value(struct gpib_board *board, int retval)return 0 ; } -static int agilent_82350b_accel_write (struct gpib_board *board,uint8_t *buffer, +static int agilent_82350b_accel_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {
@@ -297,7 +297,7 @@ static void set_transfer_counter(struct agilent_82350b_priv *a_priv, int count) }// wrappers for interface functions -static int agilent_82350b_read (struct gpib_board *board,uint8_t *buffer, +static int agilent_82350b_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct agilent_82350b_priv *priv = board->private_data;
@@ -305,7 +305,7 @@ static int agilent_82350b_read(struct gpib_board *board, uint8_t *buffer,return tms9914_read (board, &priv->tms9914_priv, buffer, length, end, bytes_read); } -static int agilent_82350b_write (struct gpib_board *board,uint8_t *buffer, +static int agilent_82350b_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {
@@ -314,7 +314,7 @@ static int agilent_82350b_write(struct gpib_board *board, uint8_t *buffer,return tms9914_write (board, &priv->tms9914_priv, buffer, length, send_eoi, bytes_written); } -static int agilent_82350b_command (struct gpib_board *board,uint8_t *buffer, +static int agilent_82350b_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {
@@ -373,7 +373,7 @@ static void agilent_82350b_remote_enable(struct gpib_board *board, int enable)tms9914_remote_enable (board, &priv->tms9914_priv, enable); } -static int agilent_82350b_enable_eos (struct gpib_board *board,uint8_t eos_byte, +static int agilent_82350b_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct agilent_82350b_priv *priv = board->private_data;
@@ -412,7 +412,7 @@ static int agilent_82350b_secondary_address(struct gpib_board *board,return tms9914_secondary_address (board, &priv->tms9914_priv, address, enable); } -static int agilent_82350b_parallel_poll (struct gpib_board *board,uint8_t *result) +static int agilent_82350b_parallel_poll (struct gpib_board *board,u8 *result) {struct agilent_82350b_priv *priv = board->private_data;
@@ -420,7 +420,7 @@ static int agilent_82350b_parallel_poll(struct gpib_board *board, uint8_t *resul }static void agilent_82350b_parallel_poll_configure (struct gpib_board *board, -uint8_t config) +u8 config) {struct agilent_82350b_priv *priv = board->private_data;
@@ -434,14 +434,14 @@ static void agilent_82350b_parallel_poll_response(struct gpib_board *board, inttms9914_parallel_poll_response (board, &priv->tms9914_priv, ist); } -static void agilent_82350b_serial_poll_response (struct gpib_board *board,uint8_t status) +static void agilent_82350b_serial_poll_response (struct gpib_board *board,u8 status) {struct agilent_82350b_priv *priv = board->private_data;tms9914_serial_poll_response (board, &priv->tms9914_priv, status); } -static uint8_t agilent_82350b_serial_poll_status (struct gpib_board *board) +static u8 agilent_82350b_serial_poll_status (struct gpib_board *board) {struct agilent_82350b_priv *priv = board->private_data;
Signature · 1 line
2.43.0
PATCH v2 4/14 staging: gpib: agilent_82357a: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- .../gpib/agilent_82357a/agilent_82357a.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/staging/gpib/agilent_82357a/agilent_82357a.c +10 -10
@@ -420,10 +420,10 @@ static int agilent_82357a_abort(struct agilent_82357a_priv *a_priv, int flush) }// interface functions -int agilent_82357a_command (struct gpib_board *board,uint8_t *buffer,size_t length, +int agilent_82357a_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written); -static int agilent_82357a_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int agilent_82357a_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *nbytes) {int retval;
@@ -536,7 +536,7 @@ static int agilent_82357a_read(struct gpib_board *board, uint8_t *buffer, size_t }static ssize_t agilent_82357a_generic_write (struct gpib_board *board, -uint8_t *buffer,size_t length, +u8 *buffer,size_t length,int send_commands,int send_eoi,size_t *bytes_written) {
@@ -676,13 +676,13 @@ static ssize_t agilent_82357a_generic_write(struct gpib_board *board,return 0 ; } -static int agilent_82357a_write (struct gpib_board *board,uint8_t *buffer, +static int agilent_82357a_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {return agilent_82357a_generic_write (board, buffer, length,0 , send_eoi, bytes_written); } -int agilent_82357a_command (struct gpib_board *board,uint8_t *buffer,size_t length, +int agilent_82357a_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {return agilent_82357a_generic_write (board, buffer, length,1 ,0 , bytes_written);
@@ -834,7 +834,7 @@ static void agilent_82357a_remote_enable(struct gpib_board *board, int enable)return ;// 0; } -static int agilent_82357a_enable_eos (struct gpib_board *board,uint8_t eos_byte, +static int agilent_82357a_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct agilent_82357a_priv *a_priv = board->private_data;
@@ -948,7 +948,7 @@ static int agilent_82357a_secondary_address(struct gpib_board *board,return 0 ; } -static int agilent_82357a_parallel_poll (struct gpib_board *board,uint8_t *result) +static int agilent_82357a_parallel_poll (struct gpib_board *board,u8 *result) {struct agilent_82357a_priv *a_priv = board->private_data;struct usb_device *usb_dev;
@@ -990,7 +990,7 @@ static int agilent_82357a_parallel_poll(struct gpib_board *board, uint8_t *resulreturn 0 ; } -static void agilent_82357a_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void agilent_82357a_parallel_poll_configure (struct gpib_board *board,u8 config) {//board can only be system controller return ;// 0;
@@ -1002,13 +1002,13 @@ static void agilent_82357a_parallel_poll_response(struct gpib_board *board, intreturn ;// 0; } -static void agilent_82357a_serial_poll_response (struct gpib_board *board,uint8_t status) +static void agilent_82357a_serial_poll_response (struct gpib_board *board,u8 status) {//board can only be system controller return ;// 0; } -static uint8_t agilent_82357a_serial_poll_status (struct gpib_board *board) +static u8 agilent_82357a_serial_poll_status (struct gpib_board *board) {//board can only be system controller return 0 ;
Signature · 1 line
2.43.0
PATCH v2 5/14 staging: gpib: cec: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/cec/cec_gpib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/gpib/cec/cec_gpib.c +8 -8
@@ -45,7 +45,7 @@ static int cec_pci_attach(struct gpib_board *board, const struct gpib_board_confstatic void cec_pci_detach (struct gpib_board *board);// wrappers for interface functions -static int cec_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int cec_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct cec_priv *priv = board->private_data;
@@ -53,7 +53,7 @@ static int cec_read(struct gpib_board *board, uint8_t *buffer, size_t length, inreturn nec7210_read (board, &priv->nec7210_priv, buffer, length, end, bytes_read); } -static int cec_write (struct gpib_board *board,uint8_t *buffer,size_t length,int send_eoi, +static int cec_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {struct cec_priv *priv = board->private_data;
@@ -61,7 +61,7 @@ static int cec_write(struct gpib_board *board, uint8_t *buffer, size_t length, ireturn nec7210_write (board, &priv->nec7210_priv, buffer, length, send_eoi, bytes_written); } -static int cec_command (struct gpib_board *board,uint8_t *buffer, +static int cec_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {struct cec_priv *priv = board->private_data;
@@ -104,7 +104,7 @@ static void cec_remote_enable(struct gpib_board *board, int enable)nec7210_remote_enable (board, &priv->nec7210_priv, enable); } -static int cec_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int cec_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct cec_priv *priv = board->private_data;
@@ -139,14 +139,14 @@ static int cec_secondary_address(struct gpib_board *board, unsigned int address,return nec7210_secondary_address (board, &priv->nec7210_priv, address, enable); } -static int cec_parallel_poll (struct gpib_board *board,uint8_t *result) +static int cec_parallel_poll (struct gpib_board *board,u8 *result) {struct cec_priv *priv = board->private_data;return nec7210_parallel_poll (board, &priv->nec7210_priv, result); } -static void cec_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void cec_parallel_poll_configure (struct gpib_board *board,u8 config) {struct cec_priv *priv = board->private_data;
@@ -160,14 +160,14 @@ static void cec_parallel_poll_response(struct gpib_board *board, int ist)nec7210_parallel_poll_response (board, &priv->nec7210_priv, ist); } -static void cec_serial_poll_response (struct gpib_board *board,uint8_t status) +static void cec_serial_poll_response (struct gpib_board *board,u8 status) {struct cec_priv *priv = board->private_data;nec7210_serial_poll_response (board, &priv->nec7210_priv, status); } -static uint8_t cec_serial_poll_status (struct gpib_board *board) +static u8 cec_serial_poll_status (struct gpib_board *board) {struct cec_priv *priv = board->private_data;
Signature · 1 line
2.43.0
PATCH v2 6/14 staging: gpib: gpib_os: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/common/gpib_os.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +4 -4
@@ -263,7 +263,7 @@ struct gpib_status_queue *get_gpib_status_queue(struct gpib_board *board, unsign }int get_serial_poll_byte (struct gpib_board *board,unsigned int pad,int sad, -unsigned int usec_timeout,uint8_t *poll_byte) +unsigned int usec_timeout,u8 *poll_byte) {struct gpib_status_queue *device;
@@ -339,7 +339,7 @@ static int setup_serial_poll(struct gpib_board *board, unsigned int usec_timeout }static int read_serial_poll_byte (struct gpib_board *board,unsigned int pad, -int sad,unsigned int usec_timeout,uint8_t *result) +int sad,unsigned int usec_timeout,u8 *result) {u8 cmd_string[8 ];int end_flag;
@@ -410,7 +410,7 @@ static int cleanup_serial_poll(struct gpib_board *board, unsigned int usec_timeo }static int serial_poll_single (struct gpib_board *board,unsigned int pad,int sad, -unsigned int usec_timeout,uint8_t *result) +unsigned int usec_timeout,u8 *result) {int retval, cleanup_retval;
@@ -475,7 +475,7 @@ int serial_poll_all(struct gpib_board *board, unsigned int usec_timeout)*/ int dvrsp (struct gpib_board *board,unsigned int pad,int sad, -unsigned int usec_timeout,uint8_t *result) +unsigned int usec_timeout,u8 *result) {int status =ibstatus (board);int retval;
Signature · 1 line
2.43.0
PATCH v2 7/14 staging: gpib: gpib_bitbang: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/gpio/gpib_bitbang.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/staging/gpib/gpio/gpib_bitbang.c +10 -10
@@ -325,7 +325,7 @@ static void set_data_lines(u8 byte);static u8 get_data_lines (void );static void set_data_lines_input (void );static void set_data_lines_output (void ); -static inline int check_for_eos (struct bb_priv *priv,uint8_t byte); +static inline int check_for_eos (struct bb_priv *priv,u8 byte);static void set_atn (struct gpib_board *board,int atn_asserted);static inline void SET_DIR_WRITE (struct bb_priv *priv);
@@ -354,7 +354,7 @@ static char printable(char x)* * ***************************************************************************/ -static int bb_read (struct gpib_board *board,uint8_t *buffer,size_t length, +static int bb_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct bb_priv *priv = board->private_data;
@@ -492,7 +492,7 @@ static irqreturn_t bb_DAV_interrupt(int irq, void *arg)* * ***************************************************************************/ -static int bb_write (struct gpib_board *board,uint8_t *buffer,size_t length, +static int bb_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {unsigned long flags;
@@ -729,7 +729,7 @@ static irqreturn_t bb_SRQ_interrupt(int irq, void *arg)return IRQ_HANDLED ; } -static int bb_command (struct gpib_board *board,uint8_t *buffer, +static int bb_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {size_t ret;
@@ -921,7 +921,7 @@ static void bb_remote_enable(struct gpib_board *board, int enable) } } -static int bb_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int bb_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct bb_priv *priv = board->private_data;
@@ -988,12 +988,12 @@ static int bb_secondary_address(struct gpib_board *board, unsigned int address,return 0 ; } -static int bb_parallel_poll (struct gpib_board *board,uint8_t *result) +static int bb_parallel_poll (struct gpib_board *board,u8 *result) {return -ENOENT ; } -static void bb_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void bb_parallel_poll_configure (struct gpib_board *board,u8 config) { }
@@ -1001,11 +1001,11 @@ static void bb_parallel_poll_response(struct gpib_board *board, int ist) { } -static void bb_serial_poll_response (struct gpib_board *board,uint8_t status) +static void bb_serial_poll_response (struct gpib_board *board,u8 status) { } -static uint8_t bb_serial_poll_status (struct gpib_board *board) +static u8 bb_serial_poll_status (struct gpib_board *board) {return 0 ;// -ENOENT; }
@@ -1366,7 +1366,7 @@ inline long usec_diff(struct timespec64 *a, struct timespec64 *b) (a->tv_nsec - b->tv_nsec) / 1000); } -static inline int check_for_eos (struct bb_priv *priv,uint8_t byte) +static inline int check_for_eos (struct bb_priv *priv,u8 byte) {if (priv->eos_check)return 0 ;
Signature · 1 line
2.43.0
PATCH v2 8/14 staging: gpib: hp_82335: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/hp_82335/hp82335.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/staging/gpib/hp_82335/hp82335.c +10 -10
@@ -30,7 +30,7 @@ static void hp82335_detach(struct gpib_board *board);static irqreturn_t hp82335_interrupt (int irq,void *arg);// wrappers for interface functions -static int hp82335_read (struct gpib_board *board,uint8_t *buffer,size_t length, +static int hp82335_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct hp82335_priv *priv = board->private_data;
@@ -38,7 +38,7 @@ static int hp82335_read(struct gpib_board *board, uint8_t *buffer, size_t lengthreturn tms9914_read (board, &priv->tms9914_priv, buffer, length, end, bytes_read); } -static int hp82335_write (struct gpib_board *board,uint8_t *buffer,size_t length,int send_eoi, +static int hp82335_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {struct hp82335_priv *priv = board->private_data;
@@ -46,7 +46,7 @@ static int hp82335_write(struct gpib_board *board, uint8_t *buffer, size_t lengtreturn tms9914_write (board, &priv->tms9914_priv, buffer, length, send_eoi, bytes_written); } -static int hp82335_command (struct gpib_board *board,uint8_t *buffer,size_t length, +static int hp82335_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {struct hp82335_priv *priv = board->private_data;
@@ -89,7 +89,7 @@ static void hp82335_remote_enable(struct gpib_board *board, int enable)tms9914_remote_enable (board, &priv->tms9914_priv, enable); } -static int hp82335_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int hp82335_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct hp82335_priv *priv = board->private_data;
@@ -124,14 +124,14 @@ static int hp82335_secondary_address(struct gpib_board *board, unsigned int addrreturn tms9914_secondary_address (board, &priv->tms9914_priv, address, enable); } -static int hp82335_parallel_poll (struct gpib_board *board,uint8_t *result) +static int hp82335_parallel_poll (struct gpib_board *board,u8 *result) {struct hp82335_priv *priv = board->private_data;return tms9914_parallel_poll (board, &priv->tms9914_priv, result); } -static void hp82335_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void hp82335_parallel_poll_configure (struct gpib_board *board,u8 config) {struct hp82335_priv *priv = board->private_data;
@@ -145,14 +145,14 @@ static void hp82335_parallel_poll_response(struct gpib_board *board, int ist)tms9914_parallel_poll_response (board, &priv->tms9914_priv, ist); } -static void hp82335_serial_poll_response (struct gpib_board *board,uint8_t status) +static void hp82335_serial_poll_response (struct gpib_board *board,u8 status) {struct hp82335_priv *priv = board->private_data;tms9914_serial_poll_response (board, &priv->tms9914_priv, status); } -static uint8_t hp82335_serial_poll_status (struct gpib_board *board) +static u8 hp82335_serial_poll_status (struct gpib_board *board) {struct hp82335_priv *priv = board->private_data;
@@ -227,12 +227,12 @@ static inline unsigned int tms9914_to_hp82335_offset(unsigned int register_num)return 0x1ff8 + register_num; } -static uint8_t hp82335_read_byte (struct tms9914_priv *priv,unsigned int register_num) +static u8 hp82335_read_byte (struct tms9914_priv *priv,unsigned int register_num) {return tms9914_iomem_read_byte (priv,tms9914_to_hp82335_offset (register_num)); } -static void hp82335_write_byte (struct tms9914_priv *priv,uint8_t data,unsigned int register_num) +static void hp82335_write_byte (struct tms9914_priv *priv,u8 data,unsigned int register_num) {tms9914_iomem_write_byte (priv, data,tms9914_to_hp82335_offset (register_num)); }
Signature · 1 line
2.43.0
PATCH v2 9/14 staging: gpib: hp_82341: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/hp_82341/hp_82341.c | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/staging/gpib/hp_82341/hp_82341.c +13 -13
@@ -25,11 +25,11 @@ MODULE_DESCRIPTION("GPIB driver for hp 82341a/b/c/d boards");static unsigned short read_and_clear_event_status (struct gpib_board *board);static void set_transfer_counter (struct hp_82341_priv *hp_priv,int count);static int read_transfer_counter (struct hp_82341_priv *hp_priv); -static int hp_82341_write (struct gpib_board *board,uint8_t *buffer,size_t length,int send_eoi, +static int hp_82341_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written);static irqreturn_t hp_82341_interrupt (int irq,void *arg); -static int hp_82341_accel_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int hp_82341_accel_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct hp_82341_priv *hp_priv = board->private_data;
@@ -173,7 +173,7 @@ static int restart_write_fifo(struct gpib_board *board, struct hp_82341_priv *hpreturn 0 ; } -static int hp_82341_accel_write (struct gpib_board *board,uint8_t *buffer,size_t length, +static int hp_82341_accel_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {struct hp_82341_priv *hp_priv = board->private_data;
@@ -256,7 +256,7 @@ static int hp_82341_attach(struct gpib_board *board, const struct gpib_board_constatic void hp_82341_detach (struct gpib_board *board);// wrappers for interface functions -static int hp_82341_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int hp_82341_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct hp_82341_priv *priv = board->private_data;
@@ -264,7 +264,7 @@ static int hp_82341_read(struct gpib_board *board, uint8_t *buffer, size_t lengtreturn tms9914_read (board, &priv->tms9914_priv, buffer, length, end, bytes_read); } -static int hp_82341_write (struct gpib_board *board,uint8_t *buffer,size_t length,int send_eoi, +static int hp_82341_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {struct hp_82341_priv *priv = board->private_data;
@@ -272,7 +272,7 @@ static int hp_82341_write(struct gpib_board *board, uint8_t *buffer, size_t lengreturn tms9914_write (board, &priv->tms9914_priv, buffer, length, send_eoi, bytes_written); } -static int hp_82341_command (struct gpib_board *board,uint8_t *buffer,size_t length, +static int hp_82341_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {struct hp_82341_priv *priv = board->private_data;
@@ -320,7 +320,7 @@ static void hp_82341_remote_enable(struct gpib_board *board, int enable)tms9914_remote_enable (board, &priv->tms9914_priv, enable); } -static int hp_82341_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int hp_82341_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct hp_82341_priv *priv = board->private_data;
@@ -355,14 +355,14 @@ static int hp_82341_secondary_address(struct gpib_board *board, unsigned int addreturn tms9914_secondary_address (board, &priv->tms9914_priv, address, enable); } -static int hp_82341_parallel_poll (struct gpib_board *board,uint8_t *result) +static int hp_82341_parallel_poll (struct gpib_board *board,u8 *result) {struct hp_82341_priv *priv = board->private_data;return tms9914_parallel_poll (board, &priv->tms9914_priv, result); } -static void hp_82341_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void hp_82341_parallel_poll_configure (struct gpib_board *board,u8 config) {struct hp_82341_priv *priv = board->private_data;
@@ -376,14 +376,14 @@ static void hp_82341_parallel_poll_response(struct gpib_board *board, int ist)tms9914_parallel_poll_response (board, &priv->tms9914_priv, ist); } -static void hp_82341_serial_poll_response (struct gpib_board *board,uint8_t status) +static void hp_82341_serial_poll_response (struct gpib_board *board,u8 status) {struct hp_82341_priv *priv = board->private_data;tms9914_serial_poll_response (board, &priv->tms9914_priv, status); } -static uint8_t hp_82341_serial_poll_status (struct gpib_board *board) +static u8 hp_82341_serial_poll_status (struct gpib_board *board) {struct hp_82341_priv *priv = board->private_data;
@@ -480,12 +480,12 @@ static void hp_82341_free_private(struct gpib_board *board) board->private_data =NULL ; } -static uint8_t hp_82341_read_byte (struct tms9914_priv *priv,unsigned int register_num) +static u8 hp_82341_read_byte (struct tms9914_priv *priv,unsigned int register_num) {return inb (priv->iobase + register_num); } -static void hp_82341_write_byte (struct tms9914_priv *priv,uint8_t data,unsigned int register_num) +static void hp_82341_write_byte (struct tms9914_priv *priv,u8 data,unsigned int register_num) {outb (data, priv->iobase + register_num); }
Signature · 1 line
2.43.0
PATCH v2 10/14 staging: gpib: ni_usb: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/ni_usb/ni_usb_gpib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/gpib/ni_usb/ni_usb_gpib.c +8 -8
@@ -589,7 +589,7 @@ static int ni_usb_write_registers(struct ni_usb_priv *ni_priv, }// interface functions -static int ni_usb_read (struct gpib_board *board,uint8_t *buffer,size_t length, +static int ni_usb_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {int retval, parse_retval;
@@ -720,7 +720,7 @@ static int ni_usb_read(struct gpib_board *board, uint8_t *buffer, size_t length,return retval; } -static int ni_usb_write (struct gpib_board *board,uint8_t *buffer,size_t length, +static int ni_usb_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {int retval;
@@ -824,7 +824,7 @@ static int ni_usb_write(struct gpib_board *board, uint8_t *buffer, size_t lengthreturn retval; } -static int ni_usb_command_chunk (struct gpib_board *board,uint8_t *buffer,size_t length, +static int ni_usb_command_chunk (struct gpib_board *board,u8 *buffer,size_t length,size_t *command_bytes_written) {int retval;
@@ -918,7 +918,7 @@ static int ni_usb_command_chunk(struct gpib_board *board, uint8_t *buffer, size_return 0 ; } -static int ni_usb_command (struct gpib_board *board,uint8_t *buffer,size_t length, +static int ni_usb_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {size_t count;
@@ -1182,7 +1182,7 @@ static void ni_usb_remote_enable(struct gpib_board *board, int enable)return ;// 0; } -static int ni_usb_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int ni_usb_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct ni_usb_priv *ni_priv = board->private_data;
@@ -1341,7 +1341,7 @@ static int ni_usb_secondary_address(struct gpib_board *board, unsigned int addrereturn 0 ; } -static int ni_usb_parallel_poll (struct gpib_board *board,uint8_t *result) +static int ni_usb_parallel_poll (struct gpib_board *board,u8 *result) {int retval;struct ni_usb_priv *ni_priv = board->private_data;
@@ -1396,7 +1396,7 @@ static int ni_usb_parallel_poll(struct gpib_board *board, uint8_t *result)return retval; } -static void ni_usb_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void ni_usb_parallel_poll_configure (struct gpib_board *board,u8 config) {int retval;struct ni_usb_priv *ni_priv = board->private_data;
@@ -1474,7 +1474,7 @@ static void ni_usb_serial_poll_response(struct gpib_board *board, u8 status)return ;// 0; } -static uint8_t ni_usb_serial_poll_status (struct gpib_board *board) +static u8 ni_usb_serial_poll_status (struct gpib_board *board) {return 0 ; }
Signature · 1 line
2.43.0
PATCH v2 11/14 staging: gpib: pc2: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/pc2/pc2_gpib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/gpib/pc2/pc2_gpib.c +8 -8
@@ -90,7 +90,7 @@ irqreturn_t pc2a_interrupt(int irq, void *arg) }// wrappers for interface functions -static int pc2_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int pc2_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct pc2_priv *priv = board->private_data;
@@ -98,7 +98,7 @@ static int pc2_read(struct gpib_board *board, uint8_t *buffer, size_t length, inreturn nec7210_read (board, &priv->nec7210_priv, buffer, length, end, bytes_read); } -static int pc2_write (struct gpib_board *board,uint8_t *buffer,size_t length,int send_eoi, +static int pc2_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {struct pc2_priv *priv = board->private_data;
@@ -106,7 +106,7 @@ static int pc2_write(struct gpib_board *board, uint8_t *buffer, size_t length, ireturn nec7210_write (board, &priv->nec7210_priv, buffer, length, send_eoi, bytes_written); } -static int pc2_command (struct gpib_board *board,uint8_t *buffer, +static int pc2_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {struct pc2_priv *priv = board->private_data;
@@ -149,7 +149,7 @@ static void pc2_remote_enable(struct gpib_board *board, int enable)nec7210_remote_enable (board, &priv->nec7210_priv, enable); } -static int pc2_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int pc2_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct pc2_priv *priv = board->private_data;
@@ -184,14 +184,14 @@ static int pc2_secondary_address(struct gpib_board *board, unsigned int address,return nec7210_secondary_address (board, &priv->nec7210_priv, address, enable); } -static int pc2_parallel_poll (struct gpib_board *board,uint8_t *result) +static int pc2_parallel_poll (struct gpib_board *board,u8 *result) {struct pc2_priv *priv = board->private_data;return nec7210_parallel_poll (board, &priv->nec7210_priv, result); } -static void pc2_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void pc2_parallel_poll_configure (struct gpib_board *board,u8 config) {struct pc2_priv *priv = board->private_data;
@@ -205,14 +205,14 @@ static void pc2_parallel_poll_response(struct gpib_board *board, int ist)nec7210_parallel_poll_response (board, &priv->nec7210_priv, ist); } -static void pc2_serial_poll_response (struct gpib_board *board,uint8_t status) +static void pc2_serial_poll_response (struct gpib_board *board,u8 status) {struct pc2_priv *priv = board->private_data;nec7210_serial_poll_response (board, &priv->nec7210_priv, status); } -static uint8_t pc2_serial_poll_status (struct gpib_board *board) +static u8 pc2_serial_poll_status (struct gpib_board *board) {struct pc2_priv *priv = board->private_data;
Signature · 1 line
2.43.0
PATCH v2 12/14 staging: gpib: gpib_ioctl: u64 over uint64_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u64' over 'uint64_t'
--- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -18,7 +18,7 @@ struct gpib_board_type_ioctl {/* argument for read/write/command ioctls */ struct gpib_read_write_ioctl { -uint64_t buffer_ptr; +__u64 buffer_ptr;unsigned int requested_transfer_count;unsigned int completed_transfer_count;int end;/* end flag return for reads, end io suppression request for cmd*/
@@ -59,7 +59,7 @@ struct gpib_wait_ioctl { };struct gpib_online_ioctl { -uint64_t init_data_ptr; +__u64 init_data_ptr;int init_data_length;int online; };
@@ -134,7 +134,7 @@ enum gpib_ioctl { IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl), IBEOS = _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl),IBRSV =_IOW (GPIB_CODE ,20 , __u8), -CFCBASE =_IOW (GPIB_CODE ,21 , uint64_t), +CFCBASE =_IOW (GPIB_CODE ,21 , __u64), CFCIRQ = _IOW(GPIB_CODE, 22, unsigned int), CFCDMA = _IOW(GPIB_CODE, 23, unsigned int), CFCBOARDTYPE = _IOW(GPIB_CODE, 24, struct gpib_board_type_ioctl),
Signature · 1 line
2.43.0
PATCH v2 13/14 staging: gpib: lpvo_usb_gpib: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c +4 -4
@@ -706,7 +706,7 @@ static int usb_gpib_line_status(const struct gpib_board *board)/* parallel_poll */ -static int usb_gpib_parallel_poll (struct gpib_board *board,uint8_t *result) +static int usb_gpib_parallel_poll (struct gpib_board *board,u8 *result) {/* * request parallel poll asserting ATN | EOI;
@@ -999,7 +999,7 @@ static int usb_gpib_write(struct gpib_board *board,/* parallel_poll configure */ static void usb_gpib_parallel_poll_configure (struct gpib_board *board, -uint8_t configuration) +u8 configuration) { }
@@ -1033,13 +1033,13 @@ static int usb_gpib_secondary_address(struct gpib_board *board,/* serial_poll_response */ -static void usb_gpib_serial_poll_response (struct gpib_board *board,uint8_t status) +static void usb_gpib_serial_poll_response (struct gpib_board *board,u8 status) { }/* serial_poll_status */ -static uint8_t usb_gpib_serial_poll_status (struct gpib_board *board) +static u8 usb_gpib_serial_poll_status (struct gpib_board *board) {return 0 ; }
Signature · 1 line
2.43.0
PATCH v2 14/14 staging: gpib: tnt4882: u8 over uint8_t
In reply to Michael RubinReported by checkpatch.pl.
CHECK: Prefer kernel type 'u8' over 'uint8_t'
--- drivers/staging/gpib/tnt4882/tnt4882_gpib.c | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/staging/gpib/tnt4882/tnt4882_gpib.c +14 -14
@@ -236,7 +236,7 @@ static int fifo_xfer_done(struct tnt4882_priv *tnt_priv)return retval; } -static int drain_fifo_words (struct tnt4882_priv *tnt_priv,uint8_t *buffer,int num_bytes) +static int drain_fifo_words (struct tnt4882_priv *tnt_priv,u8 *buffer,int num_bytes) {int count =0 ;struct nec7210_priv *nec_priv = &tnt_priv->nec7210_priv;
@@ -275,7 +275,7 @@ static void tnt4882_release_holdoff(struct gpib_board *board, struct tnt4882_pri } } -static int tnt4882_accel_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int tnt4882_accel_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {size_t count =0 ;
@@ -450,7 +450,7 @@ static int write_wait(struct gpib_board *board, struct tnt4882_priv *tnt_priv,return 0 ; } -static int generic_write (struct gpib_board *board,uint8_t *buffer,size_t length, +static int generic_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,int send_commands,size_t *bytes_written) {size_t count =0 ;
@@ -542,13 +542,13 @@ static int generic_write(struct gpib_board *board, uint8_t *buffer, size_t lengtreturn retval; } -static int tnt4882_accel_write (struct gpib_board *board,uint8_t *buffer, +static int tnt4882_accel_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {return generic_write (board, buffer, length, send_eoi,0 , bytes_written); } -static int tnt4882_command (struct gpib_board *board,uint8_t *buffer,size_t length, +static int tnt4882_command (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {return generic_write (board, buffer, length,0 ,1 , bytes_written);
@@ -595,7 +595,7 @@ static irqreturn_t tnt4882_interrupt(int irq, void *arg) }// wrappers for interface functions -static int tnt4882_read (struct gpib_board *board,uint8_t *buffer,size_t length,int *end, +static int tnt4882_read (struct gpib_board *board,u8 *buffer,size_t length,int *end,size_t *bytes_read) {struct tnt4882_priv *priv = board->private_data;
@@ -615,7 +615,7 @@ static int tnt4882_read(struct gpib_board *board, uint8_t *buffer, size_t lengthreturn retval; } -static int tnt4882_write (struct gpib_board *board,uint8_t *buffer,size_t length,int send_eoi, +static int tnt4882_write (struct gpib_board *board,u8 *buffer,size_t length,int send_eoi,size_t *bytes_written) {struct tnt4882_priv *priv = board->private_data;
@@ -623,7 +623,7 @@ static int tnt4882_write(struct gpib_board *board, uint8_t *buffer, size_t lengtreturn nec7210_write (board, &priv->nec7210_priv, buffer, length, send_eoi, bytes_written); } -static int tnt4882_command_unaccel (struct gpib_board *board,uint8_t *buffer, +static int tnt4882_command_unaccel (struct gpib_board *board,u8 *buffer,size_t length,size_t *bytes_written) {struct tnt4882_priv *priv = board->private_data;
@@ -674,7 +674,7 @@ static void tnt4882_remote_enable(struct gpib_board *board, int enable)nec7210_remote_enable (board, &priv->nec7210_priv, enable); } -static int tnt4882_enable_eos (struct gpib_board *board,uint8_t eos_byte,int compare_8_bits) +static int tnt4882_enable_eos (struct gpib_board *board,u8 eos_byte,int compare_8_bits) {struct tnt4882_priv *priv = board->private_data;
@@ -721,7 +721,7 @@ static int tnt4882_secondary_address(struct gpib_board *board, unsigned int addrreturn nec7210_secondary_address (board, &priv->nec7210_priv, address, enable); } -static int tnt4882_parallel_poll (struct gpib_board *board,uint8_t *result) +static int tnt4882_parallel_poll (struct gpib_board *board,u8 *result) {struct tnt4882_priv *tnt_priv = board->private_data;
@@ -738,7 +738,7 @@ static int tnt4882_parallel_poll(struct gpib_board *board, uint8_t *result) } } -static void tnt4882_parallel_poll_configure (struct gpib_board *board,uint8_t config) +static void tnt4882_parallel_poll_configure (struct gpib_board *board,u8 config) {struct tnt4882_priv *priv = board->private_data;
@@ -767,14 +767,14 @@ static void tnt4882_parallel_poll_response(struct gpib_board *board, int ist)* this is just used by the old nec7210 isa interfaces, the newer * boards use tnt4882_serial_poll_response2 */ -static void tnt4882_serial_poll_response (struct gpib_board *board,uint8_t status) +static void tnt4882_serial_poll_response (struct gpib_board *board,u8 status) {struct tnt4882_priv *priv = board->private_data;nec7210_serial_poll_response (board, &priv->nec7210_priv, status); } -static void tnt4882_serial_poll_response2 (struct gpib_board *board,uint8_t status, +static void tnt4882_serial_poll_response2 (struct gpib_board *board,u8 status,int new_reason_for_service) {struct tnt4882_priv *priv = board->private_data;
@@ -810,7 +810,7 @@ static void tnt4882_serial_poll_response2(struct gpib_board *board, uint8_t statspin_unlock_irqrestore (&board->spinlock, flags); } -static uint8_t tnt4882_serial_poll_status (struct gpib_board *board) +static u8 tnt4882_serial_poll_status (struct gpib_board *board) {struct tnt4882_priv *priv = board->private_data;
Signature · 1 line
2.43.0