serial: uniphier: use register macros instead of structure
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 9 Jul 2020 16:12:06 +0000 (01:12 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 11 Jul 2020 12:30:21 +0000 (21:30 +0900)
commit70434ab9de795b205608067d9a5e067f30ad3629
treec14ec520fcdb5d89e38a91256f195b9b11a7d40b
parentd7877c985b1671a427f97f04ef12aa8ad25d6e0e
serial: uniphier: use register macros instead of structure

After all, I am not a big fan of using a structure to represent the
hardware register map.

You do not need to know the entire register map.

Add only necessary register macros.

Use FIELD_PREP() instead of maintaining a pair of shift and mask.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/serial/serial_uniphier.c