]> www.infradead.org Git - users/willy/linux.git/commitdiff
staging: gpib: hp_82335: struct gpib_interface
authorMichael Rubin <matchstick@neverthere.org>
Thu, 17 Apr 2025 00:32:38 +0000 (00:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Apr 2025 09:12:54 +0000 (11:12 +0200)
Using Linux code style for struct gpib_interface.

Adhering to Linux code style.

Reported by checkpatch.pl

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>
Link: https://lore.kernel.org/r/20250417003246.84445-11-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/hp_82335/hp82335.c

index f8e5d785746e19140f28fc37d9b11593a53d5b98..3d08d2f726e1f170c9410b0ea9bbd921f21333fc 100644 (file)
@@ -180,7 +180,7 @@ static void hp82335_return_to_local(struct gpib_board *board)
        tms9914_return_to_local(board, &priv->tms9914_priv);
 }
 
-static gpib_interface_t hp82335_interface = {
+static struct gpib_interface hp82335_interface = {
        .name = "hp82335",
        .attach = hp82335_attach,
        .detach = hp82335_detach,