diff mbox

[U-Boot,21/30] dtoc: Correct quotes in fdt_util

Message ID 1469494766-26601-22-git-send-email-sjg@chromium.org
State Accepted
Commit 20024daee58906712f71b927bd86951d1ddb469d
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 26, 2016, 12:59 a.m. UTC
The style is to use single quotes for strings where possible. Adjust this
function.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/dtoc/fdt_util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Aug. 27, 2016, 4:06 p.m. UTC | #1
On 25 July 2016 at 18:59, Simon Glass <sjg@chromium.org> wrote:
> The style is to use single quotes for strings where possible. Adjust this
> function.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  tools/dtoc/fdt_util.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm/next.
diff mbox

Patch

diff --git a/tools/dtoc/fdt_util.py b/tools/dtoc/fdt_util.py
index 3e25a8b..32f41d7 100644
--- a/tools/dtoc/fdt_util.py
+++ b/tools/dtoc/fdt_util.py
@@ -22,7 +22,7 @@  def fdt32_to_cpu(val):
     Return:
         A native-endian integer value
     """
-    return struct.unpack(">I", val)[0]
+    return struct.unpack('>I', val)[0]
 
 def EnsureCompiled(fname):
     """Compile an fdt .dts source file into a .dtb binary blob if needed.