]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: s5p: Use named constants for register values
authorSam Protsenko <semen.protsenko@linaro.org>
Tue, 7 Nov 2023 19:06:00 +0000 (13:06 -0600)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 23 Nov 2023 06:24:18 +0000 (15:24 +0900)
commite79f630dbf67a402aff7b34f743064eeb2569ea1
tree2548deab828e3605a2f5e78a653dedc617b2b68c
parent5ad21de6bae0a6d51d4b0ff8eedfb795ed2d4581
serial: s5p: Use named constants for register values

Get rid of magic numbers in s5p_serial_init() when writing to UART
registers. While at it, use BIT() macro for existing constants when
appropriate.

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/serial/serial_s5p.c