[PATCH 7/9] ARM STM/i.MX: Avoid very long lines
Juergen Beisert
jbe at pengutronix.de
Tue Dec 21 06:25:19 EST 2010
Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
arch/arm/mach-stm/iomux-imx.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-stm/iomux-imx.c b/arch/arm/mach-stm/iomux-imx.c
index b9fa565..c59f0ac 100644
--- a/arch/arm/mach-stm/iomux-imx.c
+++ b/arch/arm/mach-stm/iomux-imx.c
@@ -124,14 +124,16 @@ void imx_gpio_mode(uint32_t m)
if (PE_PRESENT(m)) {
reg_offset = calc_pullup_reg(gpio_pin);
- writel(0x1 << (gpio_pin % 32), IMX_IOMUXC_BASE + reg_offset + (GET_PULLUP(m) == 1 ? 4 : 8));
+ writel(0x1 << (gpio_pin % 32), IMX_IOMUXC_BASE + reg_offset +
+ (GET_PULLUP(m) == 1 ? 4 : 8));
}
if (GET_FUNC(m) == IS_GPIO) {
if (GET_GPIODIR(m) == 1) {
/* first set the output value */
reg_offset = calc_output_reg(gpio_pin);
- writel(0x1 << (gpio_pin % 32), IMX_IOMUXC_BASE + reg_offset + (GET_GPIOVAL(m) == 1 ? 4 : 8));
+ writel(0x1 << (gpio_pin % 32), IMX_IOMUXC_BASE +
+ reg_offset + (GET_GPIOVAL(m) == 1 ? 4 : 8));
/* then the direction */
reg_offset = calc_output_enable_reg(gpio_pin);
writel(0x1 << (gpio_pin % 32),
--
1.7.2.3
More information about the barebox
mailing list