Skip to content

Commit

Permalink
can: mcp251xfd: move struct mcp251xfd_tef_ring definition
Browse files Browse the repository at this point in the history
This patch moves the struct mcp251xfd_tef_ring upwards, so that the union
mcp251xfd_write_reg_buf and struct spi_transfer can be made members of it.

Link: https://lore.kernel.org/r/20201126132144.351154-5-mkl@pengutronix.de
Tested-by: Thomas Kopp <thomas.kopp@microchip.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Nov 29, 2020
1 parent dada6a6 commit 63e7048
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/net/can/spi/mcp251xfd/mcp251xfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,14 +459,6 @@ struct mcp251xfd_hw_rx_obj_canfd {
u8 data[sizeof_field(struct canfd_frame, data)];
};

struct mcp251xfd_tef_ring {
unsigned int head;
unsigned int tail;

/* u8 obj_num equals tx_ring->obj_num */
/* u8 obj_size equals sizeof(struct mcp251xfd_hw_tef_obj) */
};

struct __packed mcp251xfd_buf_cmd {
__be16 cmd;
};
Expand Down Expand Up @@ -506,6 +498,14 @@ struct mcp251xfd_tx_obj {
union mcp251xfd_tx_obj_load_buf buf;
};

struct mcp251xfd_tef_ring {
unsigned int head;
unsigned int tail;

/* u8 obj_num equals tx_ring->obj_num */
/* u8 obj_size equals sizeof(struct mcp251xfd_hw_tef_obj) */
};

struct mcp251xfd_tx_ring {
unsigned int head;
unsigned int tail;
Expand Down

0 comments on commit 63e7048

Please sign in to comment.