diff options
| author | Alexey Charkov <[email protected]> | 2026-08-24 17:12:59 +0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-08-31 17:06:20 -0600 |
| commit | b737e5cf2bc8d9bd545451a3a2876465bbafb8fa (patch) | |
| tree | 4fb7aab7d2e6541f7969a95f8dad1b7e33774dbc | |
| parent | 9f6d57eaef77a17fafe0d28e4a103786ae2de55f (diff) | |
pylibfdt: Restore the upstream bytearray() in getprop()
Commit 903fe17aa8c8 ("pylibfdt: Sync up with upstream") replaced the
bytearray() that dtc uses here with bytes(), without saying why. The
result is the same either way, since Property derives from bytearray and
copies whatever it is handed, so restore the upstream spelling to keep the
shipped file mechanically comparable with dtc.
Signed-off-by: Alexey Charkov <[email protected]>
| -rw-r--r-- | scripts/dtc/pylibfdt/libfdt.i_shipped | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped index eb075c0b92b..55170431357 100644 --- a/scripts/dtc/pylibfdt/libfdt.i_shipped +++ b/scripts/dtc/pylibfdt/libfdt.i_shipped @@ -421,7 +421,7 @@ class FdtRo(object): quiet) if isinstance(pdata, (int)): return pdata - return Property(prop_name, bytes(pdata[0])) + return Property(prop_name, bytearray(pdata[0])) def get_phandle(self, nodeoffset): """Get the phandle of a node |
