Commit 6badc62f authored by Herve Codina's avatar Herve Codina Committed by Rob Herring (Arm)
Browse files

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: default avatarHerve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20240527161450.326615-14-herve.codina@bootlin.com


Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent 38da7fa4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment