]> git.ipfire.org Git - people/ms/u-boot.git/commit
serial: altera_uart: use BIT macro
authorThomas Chou <thomas@wytron.com.tw>
Thu, 29 Oct 2015 13:18:01 +0000 (21:18 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Fri, 6 Nov 2015 01:14:11 +0000 (09:14 +0800)
commitd0b1483065ed2d825553988c3ae5931bab1aa2f6
tree08833b667a2174c27e02406e45938ca6ce1140c1
parent315acd08b3c9cc9905e1ef4630387f18b37e68b4
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>
drivers/serial/altera_uart.c