summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/smihandler.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-10 13:42:34 -0800
committerMartin Roth <martinroth@google.com>2017-03-13 17:08:34 +0100
commit68ab0b5d1f7993735c6b113a624259bbf443ae98 (patch)
tree3adb1a21cc194700e6d911a521d0cd56a54e7280 /src/soc/intel/common/smihandler.c
parent42e605be195b50606c8113f7f6ade3dbcdab462e (diff)
soc/intel/common: Fix spacing issues
Fix the following errors detected by checkpatch.pl: ERROR: spaces required around that '=' (ctx:VxV) ERROR: spaces required around that ':' (ctx:VxW) ERROR: space required after that ',' (ctx:VxV) ERROR: space required before the open parenthesis '(' ERROR: switch and case should be at the same indent ERROR: "foo ** bar" should be "foo **bar" TEST=Build and run on Galileo Gen2 Change-Id: I52ba2a3c1e0fffad7145eecd878aba8dc450ac0b Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18755 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/common/smihandler.c')
-rw-r--r--src/soc/intel/common/smihandler.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/soc/intel/common/smihandler.c b/src/soc/intel/common/smihandler.c
index 95e7c7639a..da91c4516c 100644
--- a/src/soc/intel/common/smihandler.c
+++ b/src/soc/intel/common/smihandler.c
@@ -388,21 +388,21 @@ static uint64_t em64t100_smm_save_state_get_reg(void *state, enum smm_reg reg)
uintptr_t value = 0;
em64t100_smm_state_save_area_t *smm_state = state;
- switch(reg) {
- case RAX:
- value = smm_state->rax;
- break;
- case RBX:
- value = smm_state->rbx;
- break;
- case RCX:
- value = smm_state->rcx;
- break;
- case RDX:
- value = smm_state->rdx;
- break;
- default:
- break;
+ switch (reg) {
+ case RAX:
+ value = smm_state->rax;
+ break;
+ case RBX:
+ value = smm_state->rbx;
+ break;
+ case RCX:
+ value = smm_state->rcx;
+ break;
+ case RDX:
+ value = smm_state->rdx;
+ break;
+ default:
+ break;
}
return value;
}
@@ -410,7 +410,7 @@ static uint64_t em64t100_smm_save_state_get_reg(void *state, enum smm_reg reg)
static void em64t100_smm_save_state_set_reg(void *state, enum smm_reg reg, uint64_t val)
{
em64t100_smm_state_save_area_t *smm_state = state;
- switch(reg) {
+ switch (reg) {
case RAX:
smm_state->rax = val;
break;
@@ -439,21 +439,21 @@ static uint64_t em64t101_smm_save_state_get_reg(void *state, enum smm_reg reg)
uintptr_t value = 0;
em64t101_smm_state_save_area_t *smm_state = state;
- switch(reg) {
- case RAX:
- value = smm_state->rax;
- break;
- case RBX:
- value = smm_state->rbx;
- break;
- case RCX:
- value = smm_state->rcx;
- break;
- case RDX:
- value = smm_state->rdx;
- break;
- default:
- break;
+ switch (reg) {
+ case RAX:
+ value = smm_state->rax;
+ break;
+ case RBX:
+ value = smm_state->rbx;
+ break;
+ case RCX:
+ value = smm_state->rcx;
+ break;
+ case RDX:
+ value = smm_state->rdx;
+ break;
+ default:
+ break;
}
return value;
}
@@ -461,7 +461,7 @@ static uint64_t em64t101_smm_save_state_get_reg(void *state, enum smm_reg reg)
static void em64t101_smm_save_state_set_reg(void *state, enum smm_reg reg, uint64_t val)
{
em64t101_smm_state_save_area_t *smm_state = state;
- switch(reg) {
+ switch (reg) {
case RAX:
smm_state->rax = val;
break;