diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-10-05 10:36:45 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-10-08 09:46:16 +0000 |
commit | 88607a4b1002ed6acc7f316f274feea2fd861095 (patch) | |
tree | e004c85f36109da78872b88875d4f0ea1c30aaff /src/soc/qualcomm/ipq806x/gpio.c | |
parent | d9169f826a3c19a7380a7d73c7126e52eb62e77d (diff) | |
download | coreboot-88607a4b1002ed6acc7f316f274feea2fd861095.tar.xz |
src: Use tabs for indentation
Change-Id: I6b40aaf5af5d114bbb0cd227dfd50b0ee19eebba
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/28934
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/qualcomm/ipq806x/gpio.c')
-rw-r--r-- | src/soc/qualcomm/ipq806x/gpio.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/qualcomm/ipq806x/gpio.c b/src/soc/qualcomm/ipq806x/gpio.c index 35a3283bce..15e9e6fbc8 100644 --- a/src/soc/qualcomm/ipq806x/gpio.c +++ b/src/soc/qualcomm/ipq806x/gpio.c @@ -63,17 +63,17 @@ void gpio_tlmm_config_set(gpio_t gpio, unsigned func, unsigned pull, unsigned drvstr, unsigned enable) { - unsigned val = 0; + unsigned val = 0; if (gpio_not_valid(gpio)) return; - val |= (pull & GPIO_CFG_PULL_MASK) << GPIO_CFG_PULL_SHIFT; - val |= (func & GPIO_CFG_FUNC_MASK) << GPIO_CFG_FUNC_SHIFT; - val |= (drvstr & GPIO_CFG_DRV_MASK) << GPIO_CFG_DRV_SHIFT; - val |= (enable & GPIO_CFG_OE_MASK) << GPIO_CFG_OE_SHIFT; + val |= (pull & GPIO_CFG_PULL_MASK) << GPIO_CFG_PULL_SHIFT; + val |= (func & GPIO_CFG_FUNC_MASK) << GPIO_CFG_FUNC_SHIFT; + val |= (drvstr & GPIO_CFG_DRV_MASK) << GPIO_CFG_DRV_SHIFT; + val |= (enable & GPIO_CFG_OE_MASK) << GPIO_CFG_OE_SHIFT; - write32(GPIO_CONFIG_ADDR(gpio), val); + write32(GPIO_CONFIG_ADDR(gpio), val); } /******************************************************* @@ -93,8 +93,8 @@ void gpio_tlmm_config_get(gpio_t gpio, unsigned *func, unsigned *pull, unsigned *drvstr, unsigned *enable) { - unsigned val; - void *addr = GPIO_CONFIG_ADDR(gpio); + unsigned val; + void *addr = GPIO_CONFIG_ADDR(gpio); if (gpio_not_valid(gpio)) return; |