]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
staging: gpib: gpib_os: u8 over uint8_t
authorMichael Rubin <matchstick@neverthere.org>
Thu, 17 Apr 2025 00:45:25 +0000 (00:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Apr 2025 09:11:36 +0000 (11:11 +0200)
Reported by checkpatch.pl.

CHECK: Prefer kernel type 'u8' over 'uint8_t'

Signed-off-by: Michael Rubin <matchstick@neverthere.org>
Link: https://lore.kernel.org/r/20250417004533.86765-7-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/common/gpib_os.c

index 029590f95fd3a8c5118728bd5882257b984ab19d..a23b8aa3638a4e5dee67c94cb8c138c34627b907 100644 (file)
@@ -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;