Skip to content

Commit

Permalink
clk: Remove mmask and nmask fields in struct clk_fractional_divider
Browse files Browse the repository at this point in the history
All users of these fields have been removed.
They are now computed when needed with [mn]shift and [mn]width.

This shrinks the size of struct clk_fractional_divider from 72 to 56 bytes.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/680357e5acb338433bfc94114b65b4a4ce2c99e2.1680423909.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Christophe JAILLET authored and Stephen Boyd committed Apr 5, 2023
1 parent 645a519 commit 14e9854
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/clk-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -1135,10 +1135,8 @@ struct clk_fractional_divider {
void __iomem *reg;
u8 mshift;
u8 mwidth;
u32 mmask;
u8 nshift;
u8 nwidth;
u32 nmask;
u8 flags;
void (*approximation)(struct clk_hw *hw,
unsigned long rate, unsigned long *parent_rate,
Expand Down

0 comments on commit 14e9854

Please sign in to comment.