Skip to content
  • Masahiro Yamada's avatar
    fdt_support: refactor fdt_fixup_stdout() function · 972f2a89
    Masahiro Yamada authored
    
    
    - Do not use a deep indentation. We have only 80-character
       on each line and 1 indentation consumes 8 spaces. Before the
       code moves far to the right, you should consider to
       fix your code. See Linux Documentation/CodingStyle.
    
     - Add CONFIG_OF_STDOUT_VIA_ALIAS and OF_STDOUT_PATH macros
       only to their definition. Do not add them to both
       callee and caller. This is a tip to avoid using #ifdef
       everywhere.
    
     - OF_STDOUT_PATH and CONFIG_OF_STDOUT_VIA_ALIAS are exclusive.
       If both are defined, the former takes precedence.
       Do not try to fix-up "linux,stdout-path" property twice.
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    972f2a89