From b737e5cf2bc8d9bd545451a3a2876465bbafb8fa Mon Sep 17 00:00:00 2001 From: Alexey Charkov Date: Mon, 24 Aug 2026 17:12:59 +0400 Subject: 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 --- scripts/dtc/pylibfdt/libfdt.i_shipped | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1