]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: gpib: Removing typedef for gpib_board
authorMichael Rubin <matchstick@neverthere.org>
Wed, 19 Mar 2025 21:59:24 +0000 (21:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 13:59:40 +0000 (06:59 -0700)
Removing typedef as per Linux code style.

Adhering to Linux code style.

In general, a pointer, or a struct that has elements that can reasonably be
directly accessed should never be a typedef.

Signed-off-by: Michael Rubin <matchstick@neverthere.org>
Acked-By: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250319215924.19387-21-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/include/gpib_types.h

index 515fdb91d150b95f0c08c85ccfe4933d34539b2f..31b35f2cb2e182af8982bea5e31751e337227890 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/interrupt.h>
 
 typedef struct gpib_interface_struct gpib_interface_t;
-typedef struct gpib_board gpib_board_t;
+struct gpib_board;
 
 /* config parameters that are only used by driver attach functions */
 typedef struct {