From f42db110d0174f05745e3558067d114eae37825b Mon Sep 17 00:00:00 2001 From: Tristan Shieh Date: Wed, 6 Jun 2018 12:52:20 +0800 Subject: mediatek: Refine whitespace and formating changes This patch fix whitespace and formating issues: 1. Using two spaces between code and single line comment. 2. No space after asterisk. 3. Fix checkpatch error. 4. Remove spaces after cast operators. BUG=b:80501386 BRANCH=none TEST=the refactored code works fine on the new platform (with the rest of the patches applied) and Elm platform Change-Id: Ib36c99b141c94220776fab606eb36af8f64f65bb Signed-off-by: Tristan Shieh Reviewed-on: https://review.coreboot.org/26880 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/soc/mediatek/mt8173/pmic_wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc/mediatek/mt8173/pmic_wrap.c') diff --git a/src/soc/mediatek/mt8173/pmic_wrap.c b/src/soc/mediatek/mt8173/pmic_wrap.c index f4f2e3777d..d7d4193c8a 100644 --- a/src/soc/mediatek/mt8173/pmic_wrap.c +++ b/src/soc/mediatek/mt8173/pmic_wrap.c @@ -88,7 +88,7 @@ static inline u32 wait_for_state_idle(u32 timeout_us, void *wacs_register, return E_PWR_WAIT_IDLE_TIMEOUT; } while (((reg_rdata >> RDATA_WACS_FSM_SHIFT) & RDATA_WACS_FSM_MASK) != - WACS_FSM_IDLE); /* IDLE State */ + WACS_FSM_IDLE); /* IDLE State */ if (read_reg) *read_reg = reg_rdata; return 0; @@ -108,7 +108,7 @@ static inline u32 wait_for_state_ready(loop_condition_fp fp, u32 timeout_us, pwrap_err("timeout when waiting for idle\n"); return E_PWR_WAIT_IDLE_TIMEOUT; } - } while (fp(reg_rdata)); /* IDLE State */ + } while (fp(reg_rdata)); /* IDLE State */ if (read_reg) *read_reg = reg_rdata; return 0; -- cgit v1.2.3