0b58eaa89c
At present ofnode_write_prop() is inconsistent between livetree and flattree, in that livetree requires the caller to ensure the property value is stable (e.g. in rodata or allocated) but flattree does not, since it makes a copy. This makes the API call a bit painful to use, since the caller must do different things depending on OF_LIVE. Add a new 'copy' argument which tells the function to make a copy if needed. Add some tests to cover this behaviour. Signed-off-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
bind.rst | ||
debugging.rst | ||
design.rst | ||
ethernet.rst | ||
fdt-fixup.rst | ||
fs_firmware_loader.rst | ||
i2c-howto.rst | ||
index.rst | ||
livetree.rst | ||
migration.rst | ||
nvme.rst | ||
of-plat.rst | ||
pci-info.rst | ||
pmic-framework.rst | ||
remoteproc-framework.rst | ||
serial-howto.rst | ||
soc-framework.rst | ||
spi-howto.rst | ||
usb-info.rst | ||
virtio.rst |