提交 886161a4 编写于 作者: T Thomas Chou

serial: altera_jtag_uart: use BIT macro

Replace numerical bit shift with BIT macro
in altera_jtag_uart

:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
Reviewed-by: NJagan Teki <jteki@openedev.com>
上级 ca3ed07d
......@@ -22,11 +22,11 @@ struct altera_jtaguart_platdata {
};
/* data register */
#define ALTERA_JTAG_RVALID (1<<15) /* Read valid */
#define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
/* control register */
#define ALTERA_JTAG_AC (1 << 10) /* activity indicator */
#define ALTERA_JTAG_RRDY (1 << 12) /* read available */
#define ALTERA_JTAG_AC BIT(10) /* activity indicator */
#define ALTERA_JTAG_RRDY BIT(12) /* read available */
#define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
/* Write fifo size. FIXME: this should be extracted with sopc2dts */
#define ALTERA_JTAG_WRITE_DEPTH 64
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册