diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-11-22 15:23:07 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-12-18 00:56:14 +0100 |
commit | 1e8ce92afdbf2dafa345a9b1d91fb14a1487dc7f (patch) | |
tree | 4ec8f570e7edbfb2cc8ee4e84598337a56f96cc4 /drivers/clk/clk-versaclock3.c | |
parent | clk: versaclock3: Update vc3_get_div() to avoid divide by zero (diff) | |
download | linux-1e8ce92afdbf2dafa345a9b1d91fb14a1487dc7f.tar.xz linux-1e8ce92afdbf2dafa345a9b1d91fb14a1487dc7f.zip |
clk: versaclock3: Avoid unnecessary padding
Move long/pointer variables at the beginning of struct to avoid
unnecessary padding.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20231122142310.203169-3-biju.das.jz@bp.renesas.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-versaclock3.c')
-rw-r--r-- | drivers/clk/clk-versaclock3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/clk-versaclock3.c b/drivers/clk/clk-versaclock3.c index 3aad69a08512..058efffd4e01 100644 --- a/drivers/clk/clk-versaclock3.c +++ b/drivers/clk/clk-versaclock3.c @@ -148,16 +148,16 @@ struct vc3_pfd_data { }; struct vc3_pll_data { + unsigned long vco_min; + unsigned long vco_max; u8 num; u8 int_div_msb_offs; u8 int_div_lsb_offs; - unsigned long vco_min; - unsigned long vco_max; }; struct vc3_div_data { - u8 offs; const struct clk_div_table *table; + u8 offs; u8 shift; u8 width; u8 flags; |