diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-02-17 00:18:04 +0100 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-09-10 10:10:43 +0800 |
commit | 5896ac5766fdafb0ba087c16261e3dff792dbe3e (patch) | |
tree | a64174dadfcffc47e58b1762027c42229a324b57 /lib/mbedtls/x509_cert_parser.c | |
parent | f7fead89141e72558dd24bb7ac47aabb77fc4662 (diff) |
clk: sifive: avoid declaring static variables in includes
The existing code is unnecessarily convoluted:
Arrays __prci_init_clocks_fu[5|7]40 are initialized with data.
In separate includes fu[5|7]40-prci.h the size of the arrays is provided as
constants.
By moving the structures prci_clk_fu[5|7]40 to the respective code modules
we can directly use ARRAY_SIZE() to access the size of the data used for
initialization.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'lib/mbedtls/x509_cert_parser.c')
0 files changed, 0 insertions, 0 deletions