]> git.sur5r.net Git - u-boot/commitdiff
spi: altera_spi: Minor cleanup
authorJagan Teki <jteki@openedev.com>
Tue, 27 Oct 2015 17:41:11 +0000 (23:11 +0530)
committerJagan Teki <jteki@openedev.com>
Wed, 28 Oct 2015 08:24:09 +0000 (13:54 +0530)
- Moved macro definitions to top
- Give tab space to CONFIG_ALTERA_SPI_IDLE_VAL value
- Re-arrange header includes ascending order

Acked-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/altera_spi.c

index 3dbcfaa4ca2b8123448b3db3889ea90a05978eee..e49949b4a2c1190fd4dc3a5a862a541d212773c0 100644 (file)
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
-#include <spi.h>
 #include <fdtdec.h>
+#include <spi.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#define ALTERA_SPI_STATUS_RRDY_MSK     BIT(7)
+#define ALTERA_SPI_CONTROL_SSO_MSK     BIT(10)
+
 #ifndef CONFIG_ALTERA_SPI_IDLE_VAL
-#define CONFIG_ALTERA_SPI_IDLE_VAL 0xff
+#define CONFIG_ALTERA_SPI_IDLE_VAL     0xff
 #endif
 
 struct altera_spi_regs {
@@ -38,9 +41,6 @@ struct altera_spi_priv {
        struct altera_spi_regs *regs;
 };
 
-#define ALTERA_SPI_STATUS_RRDY_MSK     BIT(7)
-#define ALTERA_SPI_CONTROL_SSO_MSK     BIT(10)
-
 static void spi_cs_activate(struct udevice *dev, uint cs)
 {
        struct udevice *bus = dev->parent;