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-08-12 08:14:23 -04:00
2022-09-25 08:30:05 -06:00
2022-07-07 14:01:09 -04:00
2022-08-23 12:39:06 +02:00
2022-06-17 16:27:05 +08:00
2022-09-26 11:28:14 -04:00
2022-09-29 22:43:43 -04:00
2022-09-29 16:11:31 -04:00
2022-09-29 16:11:31 -04:00
2022-09-23 15:13:18 -04:00
2022-09-16 11:05:16 -04:00
2022-07-25 13:02:04 -04:00
2022-08-04 16:18:47 -04:00
2022-09-29 16:11:31 -04:00
2022-09-29 16:07:57 -04:00
2022-06-23 12:58:19 -04:00
2022-09-19 09:51:04 +03:00
2022-01-13 07:57:49 -05:00
2022-09-23 15:09:15 -04:00
2022-02-10 16:44:23 -05:00
2022-07-25 09:38:47 -04:00
2022-07-08 10:56:45 -04:00
2022-09-26 14:23:29 +02:00
2022-09-14 15:23:03 -04: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-23 15:09:15 -04:00
2022-09-29 16:07:57 -04:00
2022-09-23 15:09:15 -04:00
2022-08-20 22:45:00 -04:00
2022-09-19 16:07:12 -04:00
2022-02-08 11:00:03 -05:00
2022-09-26 14:23:29 +02:00
2022-09-14 15:23:03 -04:00
2022-07-21 10:14:04 +02:00
2022-09-25 13:59:50 -06:00
2022-09-26 11:27:30 -04:00
2022-07-06 14:30:51 -04:00
2022-07-08 09:05:47 -04:00
2022-09-26 11:28:14 -04:00
2022-09-06 13:00:58 +08:00
2022-09-16 11:05:16 -04:00
2022-09-23 15:09:15 -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-18 10:26:33 +02:00
2022-09-25 08:30:05 -06:00
2022-09-23 15:09:15 -04:00
2022-09-25 08:30:05 -06:00
2022-06-23 12:58:18 -04:00
2022-09-16 11:05:16 -04:00