soc: amlogic: clk-measure: Optimize the memory size of clk-measure
authorChuan Liu <chuan.liu@amlogic.com>
Wed, 5 Feb 2025 07:58:43 +0000 (15:58 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 22 Apr 2025 07:26:12 +0000 (09:26 +0200)
commitae3e19c2739c231bedb53cec9d38ace4bf5d95bd
treed7a0737479040749c3546a382ae3c02484deb091
parent0af2f6be1b4281385b618cb86ad946eded089ac8
soc: amlogic: clk-measure: Optimize the memory size of clk-measure

Drop "CLK_MSR_MAX" and replace it with adding a member "msr_count" in
the structure to specify the count of msr_id.

Mark the table of msr_id as const.

Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250205-optimize_memory_size_of_clk_measure-v2-1-4f546053495d@amlogic.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/soc/amlogic/meson-clk-measure.c