diff options
author | Herve Codina <herve.codina@bootlin.com> | 2024-05-27 19:14:40 +0300 |
---|---|---|
committer | Rob Herring (Arm) <robh@kernel.org> | 2024-07-09 02:40:30 +0300 |
commit | 6badc62f8fa4a1165f3f440943045b73c7a47735 (patch) | |
tree | 25dea697e01aec6898c09136213f06fddfebed20 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 38da7fa47efc41efc91a7d52600a9d0c173b2305 (diff) | |
download | linux-6badc62f8fa4a1165f3f440943045b73c7a47735.tar.xz |
of: dynamic: Constify parameter in of_changeset_add_prop_string_array()
The str_array parameter has no reason to be an un-const array.
Indeed, elements of the 'str_array' array are not changed by the code.
Constify the 'str_array' array parameter.
With this const qualifier added, the following construction is allowed:
static const char * const tab_str[] = { "string1", "string2" };
of_changeset_add_prop_string_array(..., tab_str, ARRAY_SIZE(tab_str));
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20240527161450.326615-14-herve.codina@bootlin.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions