diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 10:10:25 -0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-03-13 17:46:40 +0100 |
commit | d8fb362ea0d1ae332d35ef7a62e64a372fe96712 (patch) | |
tree | 0c654c36234b828c36a5aade81e7208c2416c621 /src/soc/intel/apollolake/gpio.c | |
parent | 0096d07274e067c7f6ec06f5cb658f79484b036f (diff) |
soc/intel/apollolake: Fix parenthesis issues
Fix the following errors and warning detected by checkpatch.pl:
ERROR: space required before the open parenthesis '('
ERROR: space prohibited before that close parenthesis ')'
ERROR: return is not a function, parentheses are not required
WARNING: space prohibited between function name and open parenthesis '('
TEST=Build for reef
Change-Id: I31f854adf3269ba6f77c4044fb3748bb1957841c
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18725
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/intel/apollolake/gpio.c')
-rw-r--r-- | src/soc/intel/apollolake/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/gpio.c b/src/soc/intel/apollolake/gpio.c index 95e229426b..affba3db7f 100644 --- a/src/soc/intel/apollolake/gpio.c +++ b/src/soc/intel/apollolake/gpio.c @@ -143,7 +143,7 @@ static void gpi_enable_smi(const struct pad_config *cfg, uint16_t port, int pin) /* Set enable bits */ en_reg = GPI_SMI_EN_OFFSET(group); - value = iosf_read(port, en_reg ); + value = iosf_read(port, en_reg); value |= 1 << (pin % GPIO_MAX_NUM_PER_GROUP); iosf_write(port, en_reg, value); } @@ -348,7 +348,7 @@ int gpi_status_get(const struct gpi_status *sts, gpio_t gpi) /* Helper function to map PMC register groups to tier1 sci groups */ static int pmc_gpe_route_to_gpio(int route) { - switch(route) { + switch (route) { case PMC_GPE_SW_31_0: return GPIO_GPE_SW_31_0; case PMC_GPE_SW_63_32: |