Simon Glass 0b58eaa89c dm: core: Allow copying ofnode property data when writing
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>
2022-09-29 22:43:43 -04:00
..
2022-09-16 11:05:16 -04:00
2022-09-13 16:01:44 -04:00
2022-04-25 10:00:04 -04:00
2022-04-04 10:48:44 -04:00
2022-04-25 16:04:05 -04:00
2022-09-19 16:07:12 -04:00
2022-08-13 11:09:49 +02:00
2022-01-19 16:18:09 +01:00
2022-03-02 10:28:12 -05:00
2022-09-19 12:17:04 -04:00
2022-08-12 08:14:23 -04:00