serial: altera_jtag_uart: minor clean up

- Moved macro definitions to top
- Give spaces around the '>>' in ALTERA_JTAG_WSPACE()
- Re-arrange header includes ascending order
- Remove unused header linux/compiler.h
- Remove the penultimate comma in of_match ids

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
Thomas Chou 2015-10-31 20:52:38 +08:00
parent 886161a445
commit 315acd08b3

View file

@ -8,18 +8,10 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <asm/io.h>
#include <linux/compiler.h>
#include <serial.h>
#include <asm/io.h>
struct altera_jtaguart_regs {
u32 data; /* Data register */
u32 control; /* Control register */
};
struct altera_jtaguart_platdata {
struct altera_jtaguart_regs *regs;
};
DECLARE_GLOBAL_DATA_PTR;
/* data register */
#define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
@ -31,7 +23,14 @@ struct altera_jtaguart_platdata {
/* Write fifo size. FIXME: this should be extracted with sopc2dts */
#define ALTERA_JTAG_WRITE_DEPTH 64
DECLARE_GLOBAL_DATA_PTR;
struct altera_jtaguart_regs {
u32 data; /* Data register */
u32 control; /* Control register */
};
struct altera_jtaguart_platdata {
struct altera_jtaguart_regs *regs;
};
static int altera_jtaguart_setbrg(struct udevice *dev, int baudrate)
{
@ -112,7 +111,7 @@ static const struct dm_serial_ops altera_jtaguart_ops = {
};
static const struct udevice_id altera_jtaguart_ids[] = {
{ .compatible = "altr,juart-1.0", },
{ .compatible = "altr,juart-1.0" },
{}
};