Files
u-boot/drivers
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-04-25 09:25:00 +02:00
2022-09-25 08:30:05 -06:00
2022-09-25 08:30:05 -06:00
2022-09-29 16:11:31 -04:00
2022-09-16 11:05:16 -04:00
2022-08-04 16:18:47 -04:00
2022-01-13 07:57:49 -05:00
2022-09-25 08:30:05 -06:00
2022-09-29 16:11:31 -04:00
2022-01-13 07:57:49 -05:00
2022-09-29 16:11:31 -04:00
2022-09-19 16:07:12 -04:00
2022-09-29 16:11:31 -04:00
2022-09-19 16:07:12 -04:00
2022-09-19 16:07:12 -04:00
2022-09-16 11:05:16 -04:00
2022-09-03 16:59:05 +03:00
2022-05-03 21:39:22 +02:00
2022-09-29 16:07:57 -04:00
2022-09-25 08:30:05 -06:00
2022-09-25 08:30:05 -06:00
2022-09-16 11:05:16 -04:00