summaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorNeil Armstrong <neil.armstrong@linaro.org>2023-06-12 11:57:19 +0200
committerJerome Brunet <jbrunet@baylibre.com>2023-08-08 16:06:16 +0200
commit141fbc272b0406265d56db696e8051671dde0bf8 (patch)
treeacf7f0625024d72e66a37580e886e9cad7930774 /LICENSES
parent230b6f3a765d0d0737ba9fd24649ee0ddfa441ba (diff)
downloadlinux-stable-141fbc272b0406265d56db696e8051671dde0bf8.tar.gz
linux-stable-141fbc272b0406265d56db696e8051671dde0bf8.tar.bz2
linux-stable-141fbc272b0406265d56db696e8051671dde0bf8.zip
clk: meson: migrate meson-eeclk out of hw_onecell_data to drop NR_CLKS
The way hw_onecell_data is declared: struct clk_hw_onecell_data { unsigned int num; struct clk_hw *hws[]; }; makes it impossible to have the clk_hw table declared outside while using ARRAY_SIZE() to determine ".num" due to ".hws" being a flexible array member. Completely move out of hw_onecell_data and add a custom devm_of_clk_add_hw_provider() "get" callback to retrieve the clk_hw from the meson_eeclkc_data struct to finally get rid on the NR_CLKS define. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230607-topic-amlogic-upstream-clkid-public-migration-v2-2-38172d17c27a@linaro.org Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions