mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
i3c: renesas: Organize structures to avoid unnecessary padding
Reorder structure members to reduce padding and improve memory layout. Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Link: https://patch.msgid.link/20260713130545.568657-15-claudiu.beznea+renesas@tuxon.dev Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
826a7d3d5f
commit
42a6f531c9
|
|
@ -221,19 +221,19 @@ enum renesas_i3c_event {
|
|||
};
|
||||
|
||||
struct renesas_i3c_cmd {
|
||||
const void *tx_buf;
|
||||
void *rx_buf;
|
||||
/* i2c xfer */
|
||||
u8 *i2c_buf;
|
||||
const struct i2c_msg *msg;
|
||||
int i2c_bytes_left;
|
||||
int i2c_is_last;
|
||||
u32 cmd0;
|
||||
u32 len;
|
||||
const void *tx_buf;
|
||||
u32 tx_count;
|
||||
void *rx_buf;
|
||||
u32 rx_count;
|
||||
u32 err;
|
||||
u8 rnw;
|
||||
/* i2c xfer */
|
||||
int i2c_bytes_left;
|
||||
int i2c_is_last;
|
||||
u8 *i2c_buf;
|
||||
const struct i2c_msg *msg;
|
||||
};
|
||||
|
||||
struct renesas_i3c_xfer {
|
||||
|
|
@ -253,21 +253,22 @@ struct renesas_i3c_xferqueue {
|
|||
};
|
||||
|
||||
struct renesas_i3c {
|
||||
void __iomem *regs;
|
||||
struct clk_bulk_data *clks;
|
||||
struct reset_control *presetn;
|
||||
struct reset_control *tresetn;
|
||||
struct renesas_i3c_xferqueue xferqueue;
|
||||
struct i3c_master_controller base;
|
||||
u8 addrs[RENESAS_I3C_MAX_DEVS];
|
||||
unsigned long rate;
|
||||
enum i3c_internal_state internal_state;
|
||||
u16 maxdevs;
|
||||
bool resuming;
|
||||
u32 free_pos;
|
||||
u32 dyn_addr;
|
||||
u32 i2c_STDBR;
|
||||
u32 i3c_STDBR;
|
||||
u32 extbr;
|
||||
unsigned long rate;
|
||||
u8 addrs[RENESAS_I3C_MAX_DEVS];
|
||||
struct renesas_i3c_xferqueue xferqueue;
|
||||
void __iomem *regs;
|
||||
struct clk_bulk_data *clks;
|
||||
struct reset_control *presetn;
|
||||
struct reset_control *tresetn;
|
||||
u16 maxdevs;
|
||||
u8 num_clks;
|
||||
u8 refclk_div;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user