aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/braswell/gpio_support.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-16 17:30:09 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-17 02:35:47 +0100
commit6598b91fe34fe9e6e6fbea592ead5e4fc2900551 (patch)
tree42b70feec4183be3a87249d73565bb1a56c1c5e6 /src/soc/intel/braswell/gpio_support.c
parentf4c4ab9826b521666d5ba887e69a636428ac9eb2 (diff)
soc/intel/braswell: Fix spacing issues detected by checkpatch
Fix the following errors and warnings detected by checkpatch.pl: ERROR: space required after that ',' (ctx:VxV) ERROR: space prohibited before that ',' (ctx:WxE) ERROR: spaces required around that '=' (ctx:WxV) ERROR: code indent should use tabs where possible WARNING: space prohibited between function name and open parenthesis '(' WARNING: please, no spaces at the start of a line TEST=Build for cyan Change-Id: I84d4204585b498b695608c5008fdfb7961e2416f Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18869 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/intel/braswell/gpio_support.c')
-rw-r--r--src/soc/intel/braswell/gpio_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/braswell/gpio_support.c b/src/soc/intel/braswell/gpio_support.c
index 73f829b5f7..5ca34ec3ab 100644
--- a/src/soc/intel/braswell/gpio_support.c
+++ b/src/soc/intel/braswell/gpio_support.c
@@ -103,7 +103,7 @@ static int gpio_get_community_num(gpio_t gpio_num, int *pad)
static void gpio_config_pad(gpio_t gpio_num, const struct soc_gpio_map *cfg)
{
int comm = 0;
- int pad_num =0;
+ int pad_num = 0;
uint32_t *pad_config0_reg;
uint32_t *pad_config1_reg;
int max_gpio_cnt = GP_SOUTHWEST_COUNT + GP_NORTH_COUNT + GP_EAST_COUNT
@@ -143,7 +143,7 @@ void gpio_input(gpio_t gpio_num)
int gpio_get(gpio_t gpio_num)
{
int comm = 0;
- int pad_num =0;
+ int pad_num = 0;
uint32_t *pad_config0_reg;
u32 pad_value;
int max_gpio_cnt = GP_SOUTHWEST_COUNT + GP_NORTH_COUNT + GP_EAST_COUNT