]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: quark: MRC codes clean up
authorBin Meng <bmeng.cn@gmail.com>
Tue, 10 Mar 2015 10:31:20 +0000 (18:31 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:34:17 +0000 (14:34 +0200)
commita7b33f8155402f120f0bbe1af4c63297d5853de3
tree5fe1dfbb9b77c4dbc0bcc5b70a9bea10e5115c2d
parentf0486cc728de5df3e7767dfd3f079346010fade0
x86: quark: MRC codes clean up

This patch cleans up the quark MRC codes coding style by:
- Remove BIT0/1../31 defines from mrc_util.h
- Create names for the documented BITs and use them
- For undocumented single BITs, use (1 << n) directly
- For undocumented ORed BITs, use the hex number directly
- Remove redundancy parenthesis all over the codes
- Replace to use lower case hex numbers

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/quark/hte.c
arch/x86/cpu/quark/hte.h
arch/x86/cpu/quark/mrc.c
arch/x86/cpu/quark/mrc_util.c
arch/x86/cpu/quark/mrc_util.h
arch/x86/cpu/quark/smc.c
arch/x86/cpu/quark/smc.h