linux/drivers/of
Herve Codina 6badc62f8f 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>
2024-07-08 17:40:30 -06:00
..
unittest-data of: Fix double free in of_parse_phandle_with_args_map 2024-01-09 12:54:02 -06:00
.kunitconfig of: Add KUnit test to confirm DTB is loaded 2024-03-08 12:50:39 -06:00
address.c of: Use scope based of_node_put() cleanups 2024-04-15 08:40:40 -05:00
base.c of: Use scope based kfree() cleanups 2024-04-15 08:40:40 -05:00
cpu.c of: Move CPU node related functions to their own file 2023-04-13 17:46:34 -05:00
device.c dma-mapping: Simplify arch_setup_dma_ops() 2024-04-26 12:07:28 +02:00
dynamic.c of: dynamic: Constify parameter in of_changeset_add_prop_string_array() 2024-07-08 17:40:30 -06:00
empty_root.dts of: Create of_root if no dtb provided by firmware 2024-03-08 12:50:39 -06:00
fdt_address.c
fdt.c of/fdt: avoid re-parsing '#{address,size}-cells' in of_fdt_limit_memory 2024-05-31 08:33:54 -05:00
irq.c of/irq: add missing of_node_put() for interrupt parent node 2023-01-18 11:31:42 -06:00
Kconfig of: Add KUnit test to confirm DTB is loaded 2024-03-08 12:50:39 -06:00
kexec.c arm64, crash: wrap crash dumping code into crash related ifdefs 2024-02-23 17:48:23 -08:00
kobj.c of: make of_node_ktype constant 2023-02-06 11:03:00 -06:00
Makefile of: Add KUnit test to confirm DTB is loaded 2024-03-08 12:50:39 -06:00
module.c Devicetree for v6.10: 2024-05-17 17:27:49 -07:00
of_numa.c
of_private.h of: Add a helper to free property struct 2024-04-15 08:40:40 -05:00
of_reserved_mem.c of: reserved_mem: Remove the use of phandle from the reserved_mem APIs 2024-05-03 07:49:13 -05:00
of_test.c of: Add KUnit test to confirm DTB is loaded 2024-03-08 12:50:39 -06:00
overlay.c of: Add a helper to free property struct 2024-04-15 08:40:40 -05:00
pdt.c
platform.c of: Create of_root if no dtb provided by firmware 2024-03-08 12:50:39 -06:00
property.c Devicetree for v6.10: 2024-05-17 17:27:49 -07:00
resolver.c of: Use scope based kfree() cleanups 2024-04-15 08:40:40 -05:00
unittest.c I2C core removes an argument from the i2c_mux_add_adapter() call to 2024-05-20 08:55:18 -07:00