script: kernel: Fix delay format to avoid build error
authorNikhil Devshatwar <nikhil.nd@ti.com>
Mon, 28 Sep 2015 14:28:07 +0000 (19:58 +0530)
committerNikhil Devshatwar <nikhil.nd@ti.com>
Mon, 28 Sep 2015 14:28:12 +0000 (19:58 +0530)
Missing paranthesis around the delay values would result in DTB build error.
Fix the format string properly.

Reported-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
iodelay-autogen.py

index d6a8701f91a3a63ae3dd1b2be4c767ed6be36aba..3e887de13df0cc1efd0fbf0c3edaae5c17e5159e 100755 (executable)
@@ -504,7 +504,7 @@ def linux_format_delay_regs(delayconf, per_delayconf):
                for i in per_delayconf[per]:
                        (pad_name, pin_name, regname, del_offset, mode, adel, gdel) = i
 
-                       print "\t\t\t0x%03X A_DELAY(%d) | G_DELAY(%d)\t/* %s */" % (del_offset, adel, gdel, regname)
+                       print "\t\t\t0x%03X (A_DELAY(%d) | G_DELAY(%d))\t/* %s */" % (del_offset, adel, gdel, regname)
                print "\t\t>;"
                print "\t};"
        print "};\n"