From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Wed, 28 Oct 2015 15:14:56 +0800 Subject: [U-Boot] [PATCH] spi: altera_spi: Minor cleanup In-Reply-To: <1445968032-11105-2-git-send-email-jteki@openedev.com> References: <1445968032-11105-1-git-send-email-jteki@openedev.com> <1445968032-11105-2-git-send-email-jteki@openedev.com> Message-ID: <563075F0.6080600@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jagan, On 10/28/2015 01:47 AM, Jagan Teki wrote: > - Moved macro definitions to top > - Give tab space to CONFIG_ALTERA_SPI_IDLE_VAL value > - Re-arrange header includes to ascending order > > Cc: Thomas Chou > Signed-off-by: Jagan Teki > --- > drivers/spi/altera_spi.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > Acked-by: Thomas Chou Thanks a lot. Best regards, Thomas Chou > diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c > index 3dbcfaa..e49949b 100644 > --- a/drivers/spi/altera_spi.c > +++ b/drivers/spi/altera_spi.c > @@ -11,14 +11,17 @@ > #include > #include > #include > -#include > #include > +#include > #include > > 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; >