[U-Boot] [PATCH 2/2] sun4i: clock: cleanup some whitespace errors

Hans de Goede hdegoede at redhat.com
Thu Dec 10 12:32:43 CET 2015


Hi,

On 12/03/2015 05:49 PM, Olliver Schinagl wrote:
> From: Olliver Schinagl <o.schinagl at ultimaker.com>
>
> Add some spaces around operators.
>
> Signed-off-by: Olliver Schinagl <o.schinagl at ultimaker.com>

Thanks, applied.

Regards,

Hans


> ---
>   arch/arm/cpu/armv7/sunxi/clock_sun4i.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c
> index ed910b1..866b2d6 100644
> --- a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c
> +++ b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c
> @@ -59,7 +59,7 @@ void clock_init_uart(void)
>
>   	/* open the clock for uart */
>   	setbits_le32(&ccm->apb1_gate,
> -		CLK_GATE_OPEN << (APB1_GATE_UART_SHIFT+CONFIG_CONS_INDEX-1));
> +		CLK_GATE_OPEN << (APB1_GATE_UART_SHIFT+CONFIG_CONS_INDEX - 1));
>   }
>
>   int clock_twi_onoff(int port, int state)
> @@ -77,10 +77,10 @@ int clock_twi_onoff(int port, int state)
>   	/* set the apb clock gate for twi */
>   	if (state)
>   		setbits_le32(&ccm->apb1_gate,
> -			     CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT+port));
> +			     CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT + port));
>   	else
>   		clrbits_le32(&ccm->apb1_gate,
> -			     CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT+port));
> +			     CLK_GATE_OPEN << (APB1_GATE_TWI_SHIFT + port));
>
>   	return 0;
>   }
>


More information about the U-Boot mailing list