diff mbox

[3/3] Source code beautification of board-qemu/slof/pci-interrupts.fs

Message ID 1473325558-469-4-git-send-email-thuth@redhat.com
State Accepted
Headers show

Commit Message

Thomas Huth Sept. 8, 2016, 9:05 a.m. UTC
No functional change in this patch, only cosmetics:
Use indentation width = 4 spaces everywhere, fix typo in
one of the comments ("Child pin" instead of "Chile pin"),
and rename "swizzledpin" in the return stack comments
to "parentpin" to match the non-return stack comments.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 board-qemu/slof/pci-interrupts.fs | 52 +++++++++++++++++++--------------------
 1 file changed, 26 insertions(+), 26 deletions(-)
diff mbox

Patch

diff --git a/board-qemu/slof/pci-interrupts.fs b/board-qemu/slof/pci-interrupts.fs
index 7c8ecbd..6c73a3a 100644
--- a/board-qemu/slof/pci-interrupts.fs
+++ b/board-qemu/slof/pci-interrupts.fs
@@ -1,38 +1,38 @@ 
 
 : pci-gen-irq-map-one ( prop-addr prop-len slot pin -- prop-addr prop-len )
-        2dup + 1- 3 and 1+          ( prop-addr prop-len slot pin parentpin )
-        >r >r                       ( prop-addr prop-len slot R: swizzledpin pin )
+    2dup + 1- 3 and 1+          ( prop-addr prop-len slot pin parentpin )
+    >r >r                       ( prop-addr prop-len slot R: parentpin pin )
 
-        \ Child slot#
-        B lshift encode-int+        ( prop-addr prop-len R: swizzledpin pin )
-        \ Child 64bit BAR (not really used)
-        0 encode-64+
-        \ Chile pin#
-        r> encode-int+              ( prop-addr prop-len R: swizzledpin )
+    \ Child slot#
+    B lshift encode-int+        ( prop-addr prop-len R: parentpin pin )
+    \ Child 64bit BAR (not really used)
+    0 encode-64+
+    \ Child pin#
+    r> encode-int+              ( prop-addr prop-len R: parentpin )
 
-        \ Parent phandle
-        get-parent encode-int+
+    \ Parent phandle
+    get-parent encode-int+
 
-        \ Parent slot#
-        get-node >space
-        pci-addr2dev B lshift       ( prop-addr prop-len parent-slot R: swizzledpin )
-        encode-int+
-        \ Parent 64bit BAR (not really used)
-        0 encode-64+
-        \ Parent pin
-        r> encode-int+              ( prop-addr prop-len R: )
+    \ Parent slot#
+    get-node >space
+    pci-addr2dev B lshift       ( prop-addr prop-len parent-slot R: parentpin )
+    encode-int+
+    \ Parent 64bit BAR (not really used)
+    0 encode-64+
+    \ Parent pin
+    r> encode-int+              ( prop-addr prop-len R: )
 ;
 
 : pci-gen-irq-entry ( prop-addr prop-len config-addr -- prop-addr prop-len )
-        pci-addr2dev                ( prop-addr prop-len slot )
-        -rot                        ( slot prop-addr prop-len )
-        5 1 DO
-                2 pick i            ( slot prop-addr prop-len slot pin )
-                pci-gen-irq-map-one
-        LOOP
-        rot drop
+    pci-addr2dev                ( prop-addr prop-len slot )
+    -rot                        ( slot prop-addr prop-len )
+    5 1 DO
+        2 pick i                ( slot prop-addr prop-len slot pin )
+        pci-gen-irq-map-one
+    LOOP
+    rot drop
 ;
 
 : pci-set-irq-line ( config-addr -- )
-  drop
+    drop
 ;