staging: gpib: agilent_82350b: gpib_board_config
authorMichael Rubin <matchstick@neverthere.org>
Tue, 8 Apr 2025 22:36:42 +0000 (22:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:35:50 +0000 (16:35 +0200)
Using Linux code style for struct gpib_board_config

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/20250408223659.187109-3-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/agilent_82350b/agilent_82350b.c

index 445b9380ff98e8316662c26d626e6e490221f229..97717afbb214f906dbf8b238de99f6f8491764b3 100644 (file)
@@ -492,7 +492,7 @@ static void agilent_82350b_free_private(struct gpib_board *board)
 }
 
 static int init_82350a_hardware(struct gpib_board *board,
-                               const gpib_board_config_t *config)
+                               const struct gpib_board_config *config)
 {
        struct agilent_82350b_priv *a_priv = board->private_data;
        static const unsigned int firmware_length = 5302;
@@ -587,7 +587,7 @@ static int test_sram(struct gpib_board *board)
 }
 
 static int agilent_82350b_generic_attach(struct gpib_board *board,
-                                        const gpib_board_config_t *config,
+                                        const struct gpib_board_config *config,
                                         int use_fifos)
 
 {
@@ -730,13 +730,13 @@ static int agilent_82350b_generic_attach(struct gpib_board *board,
 }
 
 static int agilent_82350b_unaccel_attach(struct gpib_board *board,
-                                        const gpib_board_config_t *config)
+                                        const struct gpib_board_config *config)
 {
        return agilent_82350b_generic_attach(board, config, 0);
 }
 
 static int agilent_82350b_accel_attach(struct gpib_board *board,
-                                      const gpib_board_config_t *config)
+                                      const struct gpib_board_config *config)
 {
        return agilent_82350b_generic_attach(board, config, 1);
 }