summaryrefslogtreecommitdiff
path: root/drivers/serial/altera_uart.c
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-29 21:18:01 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-11-06 09:14:11 +0800
commitd0b1483065ed2d825553988c3ae5931bab1aa2f6 (patch)
tree08833b667a2174c27e02406e45938ca6ce1140c1 /drivers/serial/altera_uart.c
parent315acd08b3c9cc9905e1ef4630387f18b37e68b4 (diff)
downloadu-boot-imx-d0b1483065ed2d825553988c3ae5931bab1aa2f6.zip
u-boot-imx-d0b1483065ed2d825553988c3ae5931bab1aa2f6.tar.gz
u-boot-imx-d0b1483065ed2d825553988c3ae5931bab1aa2f6.tar.bz2
serial: altera_uart: use BIT macro
Replace numerical bit shift with BIT macro in altera_uart :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 .... 31 Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/serial/altera_uart.c')
-rw-r--r--drivers/serial/altera_uart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index 4ff9fe2..7d5197a 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -27,9 +27,9 @@ struct altera_uart_platdata {
};
/* status register */
-#define ALTERA_UART_TMT (1 << 5) /* tx empty */
-#define ALTERA_UART_TRDY (1 << 6) /* tx ready */
-#define ALTERA_UART_RRDY (1 << 7) /* rx ready */
+#define ALTERA_UART_TMT BIT(5) /* tx empty */
+#define ALTERA_UART_TRDY BIT(6) /* tx ready */
+#define ALTERA_UART_RRDY BIT(7) /* rx ready */
DECLARE_GLOBAL_DATA_PTR;