Skip to content

Commit 8982069

Browse files
Michael Rubingregkh
authored andcommitted
staging: gpib: struct typing for gpib_board
Using Linux code style for gpib_board struct in .h to allow drivers to migrate. 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 <[email protected]> Acked-By: Dave Penkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a8e233d commit 8982069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/gpib/include/gpib_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <linux/interrupt.h>
2424

2525
typedef struct gpib_interface_struct gpib_interface_t;
26-
typedef struct gpib_board_struct gpib_board_t;
26+
typedef struct gpib_board gpib_board_t;
2727

2828
/* config parameters that are only used by driver attach functions */
2929
typedef struct {
@@ -220,7 +220,7 @@ typedef struct gpib_interface_list_struct {
220220
* It provides storage for variables local to each board, and interface
221221
* functions for performing operations on the board
222222
*/
223-
struct gpib_board_struct {
223+
struct gpib_board {
224224
/* functions used by this board */
225225
gpib_interface_t *interface;
226226
/* Pointer to module whose use count we should increment when

0 commit comments

Comments
 (0)