[PATCH v2 4/4] clk: Remove mmask and nmask fields in struct clk_fractional_divider

Christophe JAILLET posted 4 patches 2 years, 10 months ago
[PATCH v2 4/4] clk: Remove mmask and nmask fields in struct clk_fractional_divider
Posted by Christophe JAILLET 2 years, 10 months ago
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>
---
 include/linux/clk-provider.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index faad3cdc1e48..eb6930ae550f 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -1154,10 +1154,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,
-- 
2.34.1
Re: [PATCH v2 4/4] clk: Remove mmask and nmask fields in struct clk_fractional_divider
Posted by Stephen Boyd 2 years, 10 months ago
Quoting Christophe JAILLET (2023-04-02 02:42:07)
> 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>
> ---

Applied to clk-next
Re: [PATCH v2 4/4] clk: Remove mmask and nmask fields in struct clk_fractional_divider
Posted by Heiko Stübner 2 years, 10 months ago
Am Sonntag, 2. April 2023, 11:42:07 CEST schrieb Christophe JAILLET:
> 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>

Reviewed-by: Heiko Stuebner <heiko@sntech.de>