[PATCH v2 0/4] clk: shrink struct clk_fractional_divider
From: Christophe JAILLET
Date: Sun Apr 02 2023 - 05:42:34 EST
This serie removes 2 fields from struct clk_fractional_divider and shrinks it
from 72 to 56 bytes.
Instead of been pre-computed, thse fields are now computed when needed.
The first patch makes the [mn]mask fields useless.
Patch 2 and 3 make some needed modification in 2 drivers that where using these
fields.
Finally, patch 4 removes the now used fields.
This is a another approach of what was proposed in v1. (i.e. just moving a field
to shrink from 72 ro 64 bytes)
Compared to v1, all 4 patches are new.
Suggested-by: Stephen Boyd <sboyd@xxxxxxxxxx>
v1:
https://lore.kernel.org/linux-kernel/d1874eb8848d5f97f87337011188640a1463a666.1676649335.git.christophe.jaillet@xxxxxxxxxx/
Christophe JAILLET (4):
clk: Compute masks for fractional_divider clk when needed.
clk: imx: Remove values for mmask and nmask in struct
clk_fractional_divider
clk: rockchip: Remove values for mmask and nmask in struct
clk_fractional_divider
clk: Remove mmask and nmask fields in struct clk_fractional_divider
drivers/clk/clk-fractional-divider.c | 16 +++++++++++-----
drivers/clk/imx/clk-composite-7ulp.c | 4 ----
drivers/clk/rockchip/clk.c | 2 --
include/linux/clk-provider.h | 2 --
4 files changed, 11 insertions(+), 13 deletions(-)
--
2.34.1