Patchwork [U-Boot,v1,02/25] arm: kirkwood: spi.h: Add some missing parenthesis

login
register
mail settings
Submitter Stefan Roese
Date June 27, 2014, 9:54 a.m.
Message ID <1403862911-6138-3-git-send-email-sr@denx.de>
Download mbox | patch
Permalink /patch/364831/
State Accepted
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Stefan Roese - June 27, 2014, 9:54 a.m.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
---

 arch/arm/include/asm/arch-kirkwood/spi.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Jagannadha Sutradharudu Teki - July 3, 2014, 8:15 p.m.
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>

On Fri, Jun 27, 2014 at 3:24 PM, Stefan Roese <sr@denx.de> wrote:
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
> ---
>
>  arch/arm/include/asm/arch-kirkwood/spi.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-kirkwood/spi.h b/arch/arm/include/asm/arch-kirkwood/spi.h
> index b1cf614..e512dce 100644
> --- a/arch/arm/include/asm/arch-kirkwood/spi.h
> +++ b/arch/arm/include/asm/arch-kirkwood/spi.h
> @@ -43,10 +43,10 @@ struct kwspi_registers {
>  #define KWSPI_XFERLEN_2BYTE    (1 << 5)
>  #define KWSPI_XFERLEN_MASK     (1 << 5)
>  #define KWSPI_ADRLEN_1BYTE     0
> -#define KWSPI_ADRLEN_2BYTE     1 << 8
> -#define KWSPI_ADRLEN_3BYTE     2 << 8
> -#define KWSPI_ADRLEN_4BYTE     3 << 8
> -#define KWSPI_ADRLEN_MASK      3 << 8
> +#define KWSPI_ADRLEN_2BYTE     (1 << 8)
> +#define KWSPI_ADRLEN_3BYTE     (2 << 8)
> +#define KWSPI_ADRLEN_4BYTE     (3 << 8)
> +#define KWSPI_ADRLEN_MASK      (3 << 8)
>  #define KWSPI_TIMEOUT          10000
>
>  #endif /* __KW_SPI_H__ */
> --
> 2.0.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Patch

diff --git a/arch/arm/include/asm/arch-kirkwood/spi.h b/arch/arm/include/asm/arch-kirkwood/spi.h
index b1cf614..e512dce 100644
--- a/arch/arm/include/asm/arch-kirkwood/spi.h
+++ b/arch/arm/include/asm/arch-kirkwood/spi.h
@@ -43,10 +43,10 @@  struct kwspi_registers {
 #define KWSPI_XFERLEN_2BYTE	(1 << 5)
 #define KWSPI_XFERLEN_MASK	(1 << 5)
 #define KWSPI_ADRLEN_1BYTE	0
-#define KWSPI_ADRLEN_2BYTE	1 << 8
-#define KWSPI_ADRLEN_3BYTE	2 << 8
-#define KWSPI_ADRLEN_4BYTE	3 << 8
-#define KWSPI_ADRLEN_MASK	3 << 8
+#define KWSPI_ADRLEN_2BYTE	(1 << 8)
+#define KWSPI_ADRLEN_3BYTE	(2 << 8)
+#define KWSPI_ADRLEN_4BYTE	(3 << 8)
+#define KWSPI_ADRLEN_MASK	(3 << 8)
 #define KWSPI_TIMEOUT		10000
 
 #endif /* __KW_SPI_H__ */