• Ingo Molnar's avatar
    efi/fdt: Apply more cleanups · ac9aff8e
    Ingo Molnar authored
    Apply a number of cleanups:
    
     - Introduce fdt_setprop_*var() helper macros to simplify and shorten repetitive
       sequences - this also makes it less likely that the wrong variable size is
       passed in. This change makes a lot of the property-setting calls single-line
       and easier to read.
    
     - Harmonize comment style: capitalization, punctuation, whitespaces, etc.
    
     - Fix some whitespace noise in the libstub Makefile which I happened to notice.
    
     - Use the standard tabular initialization style:
    
        -       map.map =       &runtime_map;
        -       map.map_size =  &map_size;
        -       map.desc_size = &desc_size;
        -       map.desc_ver =  &desc_ver;
        -       map.key_ptr =   &mmap_key;
        -       map.buff_size = &buff_size;
    
        +       map.map         = &runtime_map;
        +       map.map_size    = &map_size;
        +       map.desc_size   = &desc_size;
        +       map.desc_ver    = &desc_ver;
        +       map.key_ptr     = &mmap_key;
        +       map.buff_size   = &buff_size;
    
     - Use tabular structure definition for better readability.
    
     - Make all pr*() lines single-line, even if they marginally exceed 80 cols - this
       makes them visually less intrusive.
    
     - Unbreak line breaks into single lines when the length exceeds 80 cols only
       marginally, for better readability.
    
     - Move assignment closer to the actual usage site.
    
     - Plus some other smaller cleanups, spelling fixes, etc.
    
    No change in functionality intended.
    
    [ ardb: move changes to upstream libfdt into local header. ]
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
    Cc: Alexander Graf <agraf@suse.de>
    Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
    Cc: Jeffrey Hugo <jhugo@codeaurora.org>
    Cc: Lee Jones <lee.jones@linaro.org>
    Cc: Leif Lindholm <leif.lindholm@linaro.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Matt Fleming <matt@codeblueprint.co.uk>
    Cc: Peter Jones <pjones@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-efi@vger.kernel.org
    Link: http://lkml.kernel.org/r/20190202094119.13230-6-ard.biesheuvel@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    ac9aff8e
Makefile 4.08 KB